summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/go/goroutines/TestGoroutines.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/go/goroutines/TestGoroutines.py')
-rw-r--r--lldb/test/lang/go/goroutines/TestGoroutines.py10
1 files changed, 2 insertions, 8 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()
OpenPOWER on IntegriCloud