summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-09-02 13:33:12 +0000
committerPavel Labath <pavel@labath.sk>2019-09-02 13:33:12 +0000
commiteafede2afeb45c826957d49c7895a04655f1f08d (patch)
treef33f594fa43974a0fc452e74bce5c4317cca8bea /lldb/packages/Python/lldbsuite/test/commands
parent491fc23a600a0aa4903b4be4eefa9b503295d70b (diff)
downloadbcm5719-llvm-eafede2afeb45c826957d49c7895a04655f1f08d.tar.gz
bcm5719-llvm-eafede2afeb45c826957d49c7895a04655f1f08d.zip
[dotest] Add @skipIfCursesSupportMissing and annotate the new gui test
Summary: The gui command requires curses support, which can be disabled at compile time. This patch adds the ability to detect this situation in the test suite and skip the test accordingly. Reviewers: teemperor, jankratochvil Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D67073 llvm-svn: 370658
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands')
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/gui/basic/TestGuiBasic.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/gui/basic/TestGuiBasic.py b/lldb/packages/Python/lldbsuite/test/commands/gui/basic/TestGuiBasic.py
index 7edddf3ff97..89bd3e1109e 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/gui/basic/TestGuiBasic.py
+++ b/lldb/packages/Python/lldbsuite/test/commands/gui/basic/TestGuiBasic.py
@@ -11,6 +11,7 @@ class BasicGuiCommandTest(PExpectTest):
mydir = TestBase.compute_mydir(__file__)
+ @skipIfCursesSupportMissing
def test_gui(self):
self.build()
diff --git a/lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py b/lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py
index 92ead9f4fa7..11fdc92243b 100644
--- a/lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py
+++ b/lldb/packages/Python/lldbsuite/test/commands/gui/invalid-args/TestInvalidArgsGui.py
@@ -6,10 +6,8 @@ class GuiTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- def setUp(self):
- TestBase.setUp(self)
-
@no_debug_info_test
+ @skipIfCursesSupportMissing
def test_reproducer_generate_invalid_invocation(self):
self.expect("gui blub", error=True,
substrs=["the gui command takes no arguments."])
OpenPOWER on IntegriCloud