summaryrefslogtreecommitdiffstats
path: root/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py')
-rw-r--r--lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py b/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
index c8a97c70b93..4d1ba4bec59 100644
--- a/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
+++ b/lldb/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py
@@ -1,7 +1,8 @@
"""Test that we are able to evaluate expressions when the inferior is blocked in a syscall"""
+import lldb_shared
+
import os
-import unittest2
import lldb
from lldbtest import *
import lldbutil
@@ -77,9 +78,3 @@ class ExprSyscallTestCase(TestBase):
self.assertEqual(process.GetState(), lldb.eStateExited)
self.assertEqual(process.GetExitStatus(), 0)
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud