summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-10-16 00:19:58 +0100
committerCarl Hetherington <cth@carlh.net>2017-10-16 00:19:58 +0100
commit312c7b48b1467bc2b963bdd46931f077c2eec864 (patch)
tree500da550b5e13ef6065446512d7dd35b589f6936 /cscript
parent5fa9586ddcdcf2e5b385738089e18541de23f090 (diff)
Revert "Try to get automatic backtraces when unit tests crash."
This reverts commit 5fa9586ddcdcf2e5b385738089e18541de23f090.
Diffstat (limited to 'cscript')
-rw-r--r--cscript10
1 files changed, 4 insertions, 6 deletions
diff --git a/cscript b/cscript
index 28be96c75..519e0d806 100644
--- a/cscript
+++ b/cscript
@@ -452,11 +452,9 @@ def make_manual(target):
def test(target, test):
if target.platform != 'windows':
target.set('LC_ALL', 'C')
- base = 'run/tests '
- if test is not None:
- base += '--run_test=%s' % test
+ cmd = 'run/tests '
if target.debug:
- cmd = 'gdb -batch -ex "run" -ex "bt" "%s" 2>&1 | grep -v ^"No stack."' % base
- else:
- cmd = base
+ cmd += '--backtrace '
+ if test is not None:
+ cmd += '--run_test=%s' % test
target.command(cmd)