diff options
author | Raphael Isemann <teemperor@gmail.com> | 2020-11-11 09:13:56 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-11-11 09:14:54 +0100 |
commit | 66ae40ebfb83c8beb2080123d3866bd08520fcef (patch) | |
tree | 6698f77a938635e186f431eff6f1c1499126dccc | |
parent | 990939c897314bd82c38d7a58c49ab9c1d209d52 (diff) | |
download | llvm-66ae40ebfb83c8beb2080123d3866bd08520fcef.zip llvm-66ae40ebfb83c8beb2080123d3866bd08520fcef.tar.gz llvm-66ae40ebfb83c8beb2080123d3866bd08520fcef.tar.bz2 |
[lldb][test] Remove not_remote_testsuite_ready in favor of skipIfRemote decorator
Those two decorators have identical behaviour. This removes
`not_remote_testsuite_ready` as `skipIfRemote` seems more consistent with the
other decorator names we have
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D89376
6 files changed, 8 insertions, 15 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py index 4dfc7b1..07b1d15 100644 --- a/lldb/packages/Python/lldbsuite/test/decorators.py +++ b/lldb/packages/Python/lldbsuite/test/decorators.py @@ -390,13 +390,6 @@ def llgs_test(func): return skipTestIfFn(should_skip_llgs_tests)(func) -def not_remote_testsuite_ready(func): - """Decorate the item as a test which is not ready yet for remote testsuite.""" - def is_remote(): - return "Not ready for remote testsuite" if lldb.remote_platform else None - return skipTestIfFn(is_remote)(func) - - def expectedFailureOS( oslist, bugnumber=None, diff --git a/lldb/test/API/commands/process/launch/TestProcessLaunch.py b/lldb/test/API/commands/process/launch/TestProcessLaunch.py index 83bc25d..7a1a9a1 100644 --- a/lldb/test/API/commands/process/launch/TestProcessLaunch.py +++ b/lldb/test/API/commands/process/launch/TestProcessLaunch.py @@ -28,7 +28,7 @@ class ProcessLaunchTestCase(TestBase): self.runCmd("settings clear auto-confirm") TestBase.tearDown(self) - @not_remote_testsuite_ready + @skipIfRemote @skipIfReproducer def test_io(self): """Test that process launch I/O redirection flags work properly.""" @@ -82,7 +82,7 @@ class ProcessLaunchTestCase(TestBase): # rdar://problem/9056462 # The process launch flag '-w' for setting the current working directory # not working? - @not_remote_testsuite_ready + @skipIfRemote @expectedFailureAll(oslist=["freebsd", "linux"], bugnumber="llvm.org/pr20265") @expectedFailureNetBSD @skipIfReproducer @@ -112,7 +112,7 @@ class ProcessLaunchTestCase(TestBase): "error:.* No such file or directory: %s" % invalid_dir_path]) - @not_remote_testsuite_ready + @skipIfRemote @skipIfReproducer def test_set_working_dir_existing(self): """Test that '-w dir' sets the working dir when running the inferior.""" diff --git a/lldb/test/API/functionalities/load_unload/TestLoadUnload.py b/lldb/test/API/functionalities/load_unload/TestLoadUnload.py index 05dffc0..9132655 100644 --- a/lldb/test/API/functionalities/load_unload/TestLoadUnload.py +++ b/lldb/test/API/functionalities/load_unload/TestLoadUnload.py @@ -91,7 +91,7 @@ class LoadUnloadTestCase(TestBase): # libloadunload_d.so does not appear in the image list because executable # dependencies are resolved relative to the debuggers PWD. Bug? @expectedFailureAll(oslist=["freebsd", "linux", "netbsd"]) - @not_remote_testsuite_ready + @skipIfRemote @skipIfWindows # Windows doesn't have dlopen and friends, dynamic libraries work differently @skipIfReproducer # VFS is a snapshot. def test_modules_search_paths(self): diff --git a/lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py b/lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py index 0ec1172..b54435e 100644 --- a/lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py +++ b/lldb/test/API/functionalities/load_using_paths/TestLoadUsingPaths.py @@ -36,7 +36,7 @@ class LoadUsingPathsTestCase(TestBase): self.hidden_dir = os.path.join(self.wd, 'hidden') self.hidden_lib = os.path.join(self.hidden_dir, self.lib_name) - @not_remote_testsuite_ready + @skipIfRemote @skipIfWindows # Windows doesn't have dlopen and friends, dynamic libraries work differently @expectedFlakeyNetBSD @expectedFailureAll(oslist=["linux"], archs=['arm'], bugnumber="llvm.org/pr45894") diff --git a/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py b/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py index d561af0..3812b19 100644 --- a/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py +++ b/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py @@ -14,7 +14,7 @@ class ProcessSaveCoreTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @not_remote_testsuite_ready + @skipIfRemote @skipUnlessWindows def test_cannot_save_core_unless_process_stopped(self): """Test that SaveCore fails if the process isn't stopped.""" @@ -28,7 +28,7 @@ class ProcessSaveCoreTestCase(TestBase): error = process.SaveCore(core) self.assertTrue(error.Fail()) - @not_remote_testsuite_ready + @skipIfRemote @skipUnlessWindows def test_save_windows_mini_dump(self): """Test that we can save a Windows mini dump.""" diff --git a/lldb/test/API/python_api/target/TestTargetAPI.py b/lldb/test/API/python_api/target/TestTargetAPI.py index 0f5fe80..f058a0a 100644 --- a/lldb/test/API/python_api/target/TestTargetAPI.py +++ b/lldb/test/API/python_api/target/TestTargetAPI.py @@ -333,7 +333,7 @@ class TargetAPITestCase(TestBase): self.expect(desc, exe=False, substrs=['Target', 'Module', 'a.out', 'Breakpoint']) - @not_remote_testsuite_ready + @skipIfRemote @add_test_categories(['pyapi']) @no_debug_info_test @skipIfReproducer # Inferior doesn't run during replay. |