Changeset 45ae2ef in mod_gnutls


Ignore:
Timestamp:
Jul 8, 2015, 1:58:51 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
90a31a4
Parents:
6ce02e2
Message:

runtests script: Add error trap

This should be useful to find the exact location where a test failed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    r6ce02e2 r45ae2ef  
    2525    exit 1
    2626fi
     27
     28# write script file and line to stderr on error
     29function pinpoint_error()
     30{
     31    echo "${1} failed at line ${2}!" >&2
     32}
     33trap 'pinpoint_error ${BASH_SOURCE} ${LINENO}' ERR
    2734
    2835function stop_msva()
Note: See TracChangeset for help on using the changeset viewer.