testsuite: Add --status to runtest invocation
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 18 Jan 2016 18:54:04 +0000 (13:54 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 19 Jan 2016 15:45:58 +0000 (10:45 -0500)
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.

gdb/testsuite/Makefile.in

index 6e5b1e994f2099ea64decad08c61c435f9173c93..50edf8ac316fdfbe48c77f0cd62c822071cb65a3 100644 (file)
@@ -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 ""
This page took 0.026583 seconds and 4 git commands to generate.