summaryrefslogtreecommitdiffstats
path: root/lldb/test/expression_command/timeout/TestCallWithTimeout.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/expression_command/timeout/TestCallWithTimeout.py')
-rw-r--r--lldb/test/expression_command/timeout/TestCallWithTimeout.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/test/expression_command/timeout/TestCallWithTimeout.py b/lldb/test/expression_command/timeout/TestCallWithTimeout.py
index f59cd7564dc..e63cebede52 100644
--- a/lldb/test/expression_command/timeout/TestCallWithTimeout.py
+++ b/lldb/test/expression_command/timeout/TestCallWithTimeout.py
@@ -2,7 +2,8 @@
Test calling a function that waits a while, and make sure the timeout option to expr works.
"""
-import unittest2
+import lldb_shared
+
import lldb
import lldbutil
from lldbtest import *
@@ -87,10 +88,3 @@ class ExprCommandWithTimeoutsTestCase(TestBase):
value = frame.EvaluateExpression ("wait_a_while (1000)", options)
self.assertTrue(value.IsValid())
self.assertTrue (value.GetError().Success() == True)
-
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud