summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-08-13 22:58:44 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-08-13 22:58:44 +0000
commitdd63f5dbe11629ffc043485d1a8a15334f8878aa (patch)
tree6520780b38318a47e7b6f65e0d0a721a4a3ef8be
parent27e1f265341c8c618a5c20934cd9485f94287f23 (diff)
downloadbcm5719-llvm-dd63f5dbe11629ffc043485d1a8a15334f8878aa.tar.gz
bcm5719-llvm-dd63f5dbe11629ffc043485d1a8a15334f8878aa.zip
Added a workaround for test suite hang while terminating by checking env variable
LLDB_TESTSUITE_FORCE_FINISH and, if defined, kill the test suite. llvm-svn: 111056
-rwxr-xr-xlldb/test/dotest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py
index 60c8c71da74..3480560c56e 100755
--- a/lldb/test/dotest.py
+++ b/lldb/test/dotest.py
@@ -187,5 +187,10 @@ unittest2.signals.installHandler()
# Invoke the default TextTestRunner to run the test suite.
result = unittest2.TextTestRunner(verbosity=verbose).run(suite)
+if ("LLDB_TESTSUITE_FORCE_FINISH" in os.environ):
+ import subprocess
+ print "Terminating Test suite..."
+ subprocess.Popen(["/bin/sh", "-c", "kill %s; exit 0" % (os.getpid())])
+
# Exiting.
sys.exit(not result.wasSuccessful)
OpenPOWER on IntegriCloud