aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/Makefile.in
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2016-01-18 13:54:04 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2016-01-19 10:45:58 -0500
commit10eadbcc2866f11bd93ef379c76524521abdc218 (patch)
treee624af3bfcd28e71a41121da0b6fd28edbe7457d /gdb/testsuite/Makefile.in
parentbef95aacb8501edb086381b3d413485d732f00f3 (diff)
downloadfsf-binutils-gdb-10eadbcc2866f11bd93ef379c76524521abdc218.zip
fsf-binutils-gdb-10eadbcc2866f11bd93ef379c76524521abdc218.tar.gz
fsf-binutils-gdb-10eadbcc2866f11bd93ef379c76524521abdc218.tar.bz2
testsuite: Add --status to runtest invocation
By default, if a test driver (a test .exp) ends with an uncaught error/exception, the runtest command will still have a return code of 0 (success). However, if a test (or the environment) is broken and does not work properly, it should be considered as failed so that we can notice it and fix it. Passing the --status flag to runtest will make it return an error if one of the test it runs ends up with an uncaught error. gdb/testsuite/ChangeLog: * Makefile.in (check-single): Pass --status to runtest. (check/%.exp): Likewise.
Diffstat (limited to 'gdb/testsuite/Makefile.in')
-rw-r--r--gdb/testsuite/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in
index 6e5b1e9..50edf8a 100644
--- a/gdb/testsuite/Makefile.in
+++ b/gdb/testsuite/Makefile.in
@@ -193,7 +193,7 @@ DO_RUNTEST = \
@GMAKE_TRUE@ $(MAKE) check TESTS="gdb.$*/*.exp"
check-single:
- $(DO_RUNTEST) $(RUNTESTFLAGS) $(expanded_tests_or_none)
+ $(DO_RUNTEST) --status $(RUNTESTFLAGS) $(expanded_tests_or_none)
check-parallel:
-rm -rf cache outputs temp
@@ -229,7 +229,7 @@ do-check-parallel: $(TEST_TARGETS)
@GMAKE_TRUE@check/%.exp:
@GMAKE_TRUE@ -mkdir -p outputs/$*
-@GMAKE_TRUE@ @$(DO_RUNTEST) GDB_PARALLEL=yes --outdir=outputs/$* $*.exp $(RUNTESTFLAGS)
+@GMAKE_TRUE@ @$(DO_RUNTEST) GDB_PARALLEL=yes --outdir=outputs/$* $*.exp --status $(RUNTESTFLAGS)
check/no-matching-tests-found:
@echo ""