summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/command_regex
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/command_regex')
-rw-r--r--lldb/test/functionalities/command_regex/TestCommandRegex.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/functionalities/command_regex/TestCommandRegex.py b/lldb/test/functionalities/command_regex/TestCommandRegex.py
index 93c0aa4fed5..5400b547fce 100644
--- a/lldb/test/functionalities/command_regex/TestCommandRegex.py
+++ b/lldb/test/functionalities/command_regex/TestCommandRegex.py
@@ -2,8 +2,9 @@
Test lldb 'commands regex' command which allows the user to create a regular expression command.
"""
+import lldb_shared
+
import os
-import unittest2
import lldb
from lldbtest import *
@@ -51,9 +52,3 @@ class CommandRegexTestCase(TestBase):
child.sendline('Help__')
child.expect_exact("error: 'Help__' is not a valid command")
child.expect_exact(prompt)
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud