summaryrefslogtreecommitdiff
path: root/tests/kolainst/libtest-core.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kolainst/libtest-core.sh')
-rw-r--r--tests/kolainst/libtest-core.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/kolainst/libtest-core.sh b/tests/kolainst/libtest-core.sh
index 471a63f0..7179a408 100644
--- a/tests/kolainst/libtest-core.sh
+++ b/tests/kolainst/libtest-core.sh
@@ -179,3 +179,11 @@ skip() {
echo "1..0 # SKIP" "$@"
exit 0
}
+
+report_err () {
+ local exit_status="$?"
+ { { local BASH_XTRACEFD=3; } 2> /dev/null
+ echo "Unexpected nonzero exit status $exit_status while running: $BASH_COMMAND" >&2
+ } 3> /dev/null
+}
+trap report_err ERR