diff options
Diffstat (limited to 'lldb/test/lang/go')
-rw-r--r-- | lldb/test/lang/go/goroutines/TestGoroutines.py | 10 | ||||
-rw-r--r-- | lldb/test/lang/go/types/TestGoASTContext.py | 10 |
2 files changed, 4 insertions, 16 deletions
diff --git a/lldb/test/lang/go/goroutines/TestGoroutines.py b/lldb/test/lang/go/goroutines/TestGoroutines.py index 05f6aa8f0b0..6c26a3a1075 100644 --- a/lldb/test/lang/go/goroutines/TestGoroutines.py +++ b/lldb/test/lang/go/goroutines/TestGoroutines.py @@ -1,7 +1,8 @@ """Test the Go OS Plugin.""" +import lldb_shared + import os, time -import unittest2 import lldb import lldbutil from lldbtest import * @@ -80,10 +81,3 @@ class TestGoASTContext(TestBase): self.dbg.HandleCommand("settings set plugin.os.goroutines.enable false") self.thread().StepInstruction(False) self.assertLess(len(self.process().threads), 20) - - -if __name__ == '__main__': - import atexit - lldb.SBDebugger.Initialize() - atexit.register(lambda: lldb.SBDebugger.Terminate()) - unittest2.main() diff --git a/lldb/test/lang/go/types/TestGoASTContext.py b/lldb/test/lang/go/types/TestGoASTContext.py index ccfca85a130..457b6d30639 100644 --- a/lldb/test/lang/go/types/TestGoASTContext.py +++ b/lldb/test/lang/go/types/TestGoASTContext.py @@ -1,7 +1,8 @@ """Test the go DWARF type parsing.""" +import lldb_shared + import os, time -import unittest2 import lldb import lldbutil from lldbtest import * @@ -128,10 +129,3 @@ class TestGoASTContext(TestBase): self.assertEqual(5, v.GetNumChildren()) for i in xrange(5): self.assertEqual(str(i + 1), v.GetChildAtIndex(i).value) - - -if __name__ == '__main__': - import atexit - lldb.SBDebugger.Initialize() - atexit.register(lambda: lldb.SBDebugger.Terminate()) - unittest2.main() |