summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py')
-rw-r--r--lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py b/lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py
index 33eb35ff313..74013faacfb 100644
--- a/lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py
+++ b/lldb/test/functionalities/process_attach/attach_denied/TestAttachDenied.py
@@ -2,9 +2,10 @@
Test denied process attach.
"""
+import lldb_shared
+
import os
import time
-import unittest2
import lldb
from lldbtest import *
@@ -54,10 +55,3 @@ class AttachDeniedTestCase(TestBase):
self.expect('process attach -p ' + pid,
startstr = 'error: attach failed:',
error = True)
-
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud