[lldb][NFC] Merge multiple TestApropos.py
authorRaphael Isemann <teemperor@gmail.com>
Wed, 21 Aug 2019 14:22:59 +0000 (14:22 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 21 Aug 2019 14:22:59 +0000 (14:22 +0000)
That's cleaner and makes lldb-dotest no longer fail due to conflicting names.

llvm-svn: 369530

lldb/packages/Python/lldbsuite/test/functionalities/apropos/TestApropos.py
lldb/packages/Python/lldbsuite/test/help/TestApropos.py [deleted file]

index f844771..c4337c7 100644 (file)
@@ -17,3 +17,13 @@ class AproposTestCase(TestBase):
                     substrs=[' must be called with exactly one argument'])
         self.expect("apropos ''", error=True,
                     substrs=['\'\' is not a valid search word'])
+
+    @no_debug_info_test
+    def test_apropos_variable(self):
+        """Test that 'apropos variable' prints the fully qualified command name"""
+        self.expect(
+            'apropos variable',
+            substrs=[
+                'frame variable',
+                'target variable',
+                'watchpoint set variable'])
diff --git a/lldb/packages/Python/lldbsuite/test/help/TestApropos.py b/lldb/packages/Python/lldbsuite/test/help/TestApropos.py
deleted file mode 100644 (file)
index f48d512..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-"""
-Test some lldb apropos commands.
-"""
-
-from __future__ import print_function
-
-
-import lldb
-from lldbsuite.test.decorators import *
-from lldbsuite.test.lldbtest import *
-from lldbsuite.test import lldbutil
-
-
-class AproposCommandTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @no_debug_info_test
-    def test_apropos_variable(self):
-        """Test that 'apropos variable' prints the fully qualified command name"""
-        self.expect(
-            'apropos variable',
-            substrs=[
-                'frame variable',
-                'target variable',
-                'watchpoint set variable'])