summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/asan/TestMemoryHistory.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/asan/TestMemoryHistory.py')
-rw-r--r--lldb/test/functionalities/asan/TestMemoryHistory.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/functionalities/asan/TestMemoryHistory.py b/lldb/test/functionalities/asan/TestMemoryHistory.py
index 541c1c5fa14..d9334d5f2a2 100644
--- a/lldb/test/functionalities/asan/TestMemoryHistory.py
+++ b/lldb/test/functionalities/asan/TestMemoryHistory.py
@@ -2,8 +2,9 @@
Test that ASan memory history provider returns correct stack traces
"""
+import lldb_shared
+
import os, time
-import unittest2
import lldb
from lldbtest import *
import lldbutil
@@ -102,9 +103,3 @@ class AsanTestCase(TestBase):
self.expect("memory history 'another_pointer'",
substrs = [
'Memory allocated at', 'a.out`f1', 'main.c:%d' % self.line_malloc2])
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud