summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/c/const_variables/TestConstVariables.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/c/const_variables/TestConstVariables.py')
-rw-r--r--lldb/test/lang/c/const_variables/TestConstVariables.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/lang/c/const_variables/TestConstVariables.py b/lldb/test/lang/c/const_variables/TestConstVariables.py
index 8954e49a189..30fc91adab4 100644
--- a/lldb/test/lang/c/const_variables/TestConstVariables.py
+++ b/lldb/test/lang/c/const_variables/TestConstVariables.py
@@ -1,7 +1,8 @@
"""Check that compiler-generated constant values work correctly"""
+import lldb_shared
+
import os, time
-import unittest2
import lldb
from lldbtest import *
import lldbutil
@@ -57,9 +58,3 @@ class ConstVariableTestCase(TestBase):
substrs = ['(int) $1 = 256'])
self.runCmd("kill")
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud