diff options
Diffstat (limited to 'lldb/test/functionalities/asan')
-rw-r--r-- | lldb/test/functionalities/asan/TestMemoryHistory.py | 9 | ||||
-rw-r--r-- | lldb/test/functionalities/asan/TestReportData.py | 9 |
2 files changed, 4 insertions, 14 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() diff --git a/lldb/test/functionalities/asan/TestReportData.py b/lldb/test/functionalities/asan/TestReportData.py index cfa0141dd36..19e0b61498a 100644 --- a/lldb/test/functionalities/asan/TestReportData.py +++ b/lldb/test/functionalities/asan/TestReportData.py @@ -2,8 +2,9 @@ Test the AddressSanitizer runtime support for report breakpoint and data extraction. """ +import lldb_shared + import os, time -import unittest2 import lldb from lldbtest import * import lldbutil @@ -78,9 +79,3 @@ class AsanTestReportDataCase(TestBase): s = s.GetData() data2 = json.loads(s) self.assertEqual(data, data2) - -if __name__ == '__main__': - import atexit - lldb.SBDebugger.Initialize() - atexit.register(lambda: lldb.SBDebugger.Terminate()) - unittest2.main() |