[Lldb-commits] [lldb] r111056 - /lldb/trunk/test/dotest.py
Johnny Chen
johnny.chen at apple.com
Fri Aug 13 15:58:44 PDT 2010
Author: johnny
Date: Fri Aug 13 17:58:44 2010
New Revision: 111056
URL: http://llvm.org/viewvc/llvm-project?rev=111056&view=rev
Log:
Added a workaround for test suite hang while terminating by checking env variable
LLDB_TESTSUITE_FORCE_FINISH and, if defined, kill the test suite.
Modified:
lldb/trunk/test/dotest.py
Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=111056&r1=111055&r2=111056&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Fri Aug 13 17:58:44 2010
@@ -187,5 +187,10 @@
# 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)
More information about the lldb-commits
mailing list