Fix dotest.py test runner exit code to return non-zero on failure/error.
authorTodd Fiala <todd.fiala@gmail.com>
Tue, 14 Oct 2014 16:17:02 +0000 (16:17 +0000)
committerTodd Fiala <todd.fiala@gmail.com>
Tue, 14 Oct 2014 16:17:02 +0000 (16:17 +0000)
This addresses this bug:
http://www.llvm.org/bugs/show_bug.cgi?id=21267

Which has been broken since svn r215256 on Aug 8 2014.

DO NOT REVERT THIS COMMIT EVEN IF IT CREATES TEST FAILURES.

The test failures are a result of accumulation of hidden failures
that were masked by the bug this change fixes.  Most of our test
runners as part of build testing rely on dotest.py returning non-zero to indicate
some kind of errant test run.  Thus, we have been flying blind
since Aug 8 2014.

llvm-svn: 219689

lldb/test/dotest.py

index 2c31d29..37e7f0e 100755 (executable)
@@ -1737,4 +1737,4 @@ if ("LLDB_TESTSUITE_FORCE_FINISH" in os.environ):
     subprocess.Popen(["/bin/sh", "-c", "kill %s; exit 0" % (os.getpid())])
 
 # Exiting.
-exitTestSuite()
\ No newline at end of file
+exitTestSuite(failed)
\ No newline at end of file