[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
This commit is contained in:
Raphael Isemann 2020-11-11 09:13:56 +01:00
parent 990939c897
commit 66ae40ebfb
6 changed files with 8 additions and 15 deletions

View File

@ -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,

View File

@ -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."""

View File

@ -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):

View File

@ -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")

View File

@ -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."""

View File

@ -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.