summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py')
-rw-r--r--lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py b/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py
index 431f19f7ae4..f46bad7dd9c 100644
--- a/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py
+++ b/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py
@@ -2,9 +2,11 @@
Test lldb Python API SBValue::Cast(SBType) for C++ types.
"""
+import lldb_shared
+
+import unittest2
import os, time
import re
-import unittest2
import lldb, lldbutil
from lldbtest import *
@@ -122,10 +124,3 @@ class CppValueCastTestCase(TestBase):
b_member_val = instanceB.GetChildMemberWithName('m_b_val')
self.DebugSBValue(b_member_val)
self.assertTrue(b_member_val.GetValueAsUnsigned(error, 0) == 36)
-
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud