summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/target_command/TestTargetCommand.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/target_command/TestTargetCommand.py')
-rw-r--r--lldb/test/functionalities/target_command/TestTargetCommand.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/functionalities/target_command/TestTargetCommand.py b/lldb/test/functionalities/target_command/TestTargetCommand.py
index 8e81deaa81e..28dcd1c8a45 100644
--- a/lldb/test/functionalities/target_command/TestTargetCommand.py
+++ b/lldb/test/functionalities/target_command/TestTargetCommand.py
@@ -2,7 +2,8 @@
Test some target commands: create, list, select, variable.
"""
-import unittest2
+import lldb_shared
+
import lldb
import sys
from lldbtest import *
@@ -196,9 +197,3 @@ class targetCommandTestCase(TestBase):
substrs = ['a'])
self.expect("target variable my_global_char", VARIABLES_DISPLAYED_CORRECTLY,
substrs = ["my_global_char", "'X'"])
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud