Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike@mikegerwitz.com>2014-06-17 23:47:26 -0400
committerMike Gerwitz <mike@mikegerwitz.com>2014-06-17 23:47:26 -0400
commit77d4c14e5e1aef1adb7979e00f150c0914032b5b (patch)
treeaee4dc911fb14bdfce08a75381af8355df11c44d
parent7e8952a4d34873cc402a0e4a1e108ebe76fc6485 (diff)
downloadpkgsh-77d4c14e5e1aef1adb7979e00f150c0914032b5b.tar.gz
pkgsh-77d4c14e5e1aef1adb7979e00f150c0914032b5b.tar.bz2
pkgsh-77d4c14e5e1aef1adb7979e00f150c0914032b5b.zip
Including previous stack frame on assertion failureHEADmaster
-rwxr-xr-xtest/run-test2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/run-test b/test/run-test
index 9a8b7c0..d25588a 100755
--- a/test/run-test
+++ b/test/run-test
@@ -40,6 +40,8 @@ assert()
test "$@" || {
local -i code=$?
echo "assertion failed: \`$@\` in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}"
+ echo -n 'prev: '
+ caller 1
return $code
} >&2
}