Changeset 5f3222b in mod_gnutls


Ignore:
Timestamp:
Mar 5, 2017, 9:22:29 AM (9 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master
Children:
4fb510d
Parents:
0b83b21
Message:

Test suite: Use "caller" builtin and BASH_COMMAND for error traces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    rfb4da99 r5f3222b  
    3434function pinpoint_error()
    3535{
    36     echo "${1} failed at line ${2}!" >&2
    37 }
    38 trap 'pinpoint_error ${BASH_SOURCE} ${LINENO}' ERR
     36    echo "Command \"${BASH_COMMAND}\" failed. Call trace:" >&2
     37    local stack=0
     38    while caller $((stack++)) >&2; do true; done
     39}
     40trap 'pinpoint_error' ERR
    3941
    4042function stop_msva()
Note: See TracChangeset for help on using the changeset viewer.