summaryrefslogtreecommitdiffstats
path: root/lldb/test/source-manager/TestSourceManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/source-manager/TestSourceManager.py')
-rw-r--r--lldb/test/source-manager/TestSourceManager.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/test/source-manager/TestSourceManager.py b/lldb/test/source-manager/TestSourceManager.py
index c4f7131ec0b..ea6499ea669 100644
--- a/lldb/test/source-manager/TestSourceManager.py
+++ b/lldb/test/source-manager/TestSourceManager.py
@@ -9,7 +9,8 @@ o test_modify_source_file_while_debugging:
Test the caching mechanism of the source manager.
"""
-import unittest2
+import lldb_shared
+
import lldb
from lldbtest import *
import lldbutil
@@ -168,10 +169,3 @@ class SourceManagerTestCase(TestBase):
# Display the source code again. We should see the updated line.
self.expect("source list -f main.c -l %d" % self.line, SOURCE_DISPLAYED_CORRECTLY,
substrs = ['Hello lldb'])
-
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud