summaryrefslogtreecommitdiffstats
path: root/lldb/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-10-22 20:06:20 +0000
committerZachary Turner <zturner@google.com>2015-10-22 20:06:20 +0000
commit77db4a855239049488e09f28c6665fdb3b51ef90 (patch)
tree11f22a87f27e28b3a71914ee3d80a039a79d2c9a /lldb/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py
parentbd832d513156cea8645f1c3da1296f791edfbbab (diff)
downloadbcm5719-llvm-77db4a855239049488e09f28c6665fdb3b51ef90.tar.gz
bcm5719-llvm-77db4a855239049488e09f28c6665fdb3b51ef90.zip
Update every test to import `lldb_shared`.
This is necessary in order to allow third party modules to be located under lldb/third_party rather than under the test folder directly. Since we're already touching every test file anyway, we also go ahead and delete the unittest2 import and main block wherever possible. The ability to run a test as a standalone file has already been broken for some time, and if we decide we want this back, we should use unittest instead of unittest2. A few places could not have the import of unittest2 removed,because they depend on the unittest2.expectedFailure or skip decorators. Removing all those was orthogonal in spirit to the purpose of this CL, so the import of unittest2 remains in those files that were using it for its test decorators. Those can be addressed separately. llvm-svn: 251055
Diffstat (limited to 'lldb/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py')
-rw-r--r--lldb/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py b/lldb/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py
index 93f6ed009ef..177ddae8c73 100644
--- a/lldb/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py
+++ b/lldb/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py
@@ -3,9 +3,10 @@
Test lldb-mi -gdb-set and -gdb-show commands for 'print option-name'.
"""
+import lldb_shared
+
import lldbmi_testcase
from lldbtest import *
-import unittest2
class MiGdbSetShowTestCase(lldbmi_testcase.MiTestCaseBase):
@@ -225,6 +226,3 @@ class MiGdbSetShowTestCase(lldbmi_testcase.MiTestCaseBase):
# Test that -gdb-set print aggregate-field-names fails when option is unknown
self.runCmd("-gdb-set print aggregate-field-names unknown")
self.expect("\^error,msg=\"The request ''print' expects option-name and \"on\" or \"off\"' failed.\"")
-
-if __name__ == '__main__':
- unittest2.main()
OpenPOWER on IntegriCloud