[lldb/tests] Removed add_test_categories decorator for python API tests, NFC
There is a .categories file in the python_api directory that makes all nested tests belong to the category "pyapi". The decorator is unnecessary for these tests.
This commit is contained in:
@@ -23,7 +23,6 @@ class ProcessAPITestCase(TestBase):
|
||||
"main.cpp",
|
||||
"// Set break point at this line and check variable 'my_char'.")
|
||||
|
||||
@add_test_categories(['pyapi'])
|
||||
@skipIfReproducer # SBProcess::ReadMemory is not instrumented.
|
||||
def test_read_memory(self):
|
||||
"""Test Python SBProcess.ReadMemory() API."""
|
||||
@@ -122,7 +121,6 @@ class ProcessAPITestCase(TestBase):
|
||||
self.fail(
|
||||
"Result from SBProcess.ReadUnsignedFromMemory() does not match our expected output")
|
||||
|
||||
@add_test_categories(['pyapi'])
|
||||
@skipIfReproducer # SBProcess::WriteMemory is not instrumented.
|
||||
def test_write_memory(self):
|
||||
"""Test Python SBProcess.WriteMemory() API."""
|
||||
@@ -182,7 +180,6 @@ class ProcessAPITestCase(TestBase):
|
||||
exe=False,
|
||||
startstr=b'a')
|
||||
|
||||
@add_test_categories(['pyapi'])
|
||||
@skipIfReproducer # SBProcess::WriteMemory is not instrumented.
|
||||
def test_access_my_int(self):
|
||||
"""Test access 'my_int' using Python SBProcess.GetByteOrder() and other APIs."""
|
||||
@@ -281,7 +278,6 @@ class ProcessAPITestCase(TestBase):
|
||||
for i in content:
|
||||
print("byte:", i)
|
||||
|
||||
@add_test_categories(['pyapi'])
|
||||
def test_remote_launch(self):
|
||||
"""Test SBProcess.RemoteLaunch() API with a process not in eStateConnected, and it should fail."""
|
||||
self.build()
|
||||
@@ -305,7 +301,6 @@ class ProcessAPITestCase(TestBase):
|
||||
not success,
|
||||
"RemoteLaunch() should fail for process state != eStateConnected")
|
||||
|
||||
@add_test_categories(['pyapi'])
|
||||
def test_get_num_supported_hardware_watchpoints(self):
|
||||
"""Test SBProcess.GetNumSupportedHardwareWatchpoints() API with a process."""
|
||||
self.build()
|
||||
@@ -327,7 +322,6 @@ class ProcessAPITestCase(TestBase):
|
||||
if self.TraceOn() and error.Success():
|
||||
print("Number of supported hardware watchpoints: %d" % num)
|
||||
|
||||
@add_test_categories(['pyapi'])
|
||||
@no_debug_info_test
|
||||
def test_get_process_info(self):
|
||||
"""Test SBProcess::GetProcessInfo() API with a locally launched process."""
|
||||
|
||||
@@ -32,7 +32,6 @@ class ProcessIOTestCase(TestBase):
|
||||
self.lines = ["Line 1", "Line 2", "Line 3"]
|
||||
|
||||
@skipIfWindows # stdio manipulation unsupported on Windows
|
||||
@add_test_categories(['pyapi'])
|
||||
@expectedFlakeyLinux(bugnumber="llvm.org/pr26437")
|
||||
@skipIfDarwinEmbedded # I/O redirection like this is not supported on remote iOS devices yet <rdar://problem/54581135>
|
||||
def test_stdin_by_api(self):
|
||||
@@ -45,7 +44,6 @@ class ProcessIOTestCase(TestBase):
|
||||
self.check_process_output(output, output)
|
||||
|
||||
@skipIfWindows # stdio manipulation unsupported on Windows
|
||||
@add_test_categories(['pyapi'])
|
||||
@expectedFlakeyLinux(bugnumber="llvm.org/pr26437")
|
||||
def test_stdin_redirection(self):
|
||||
"""Exercise SBLaunchInfo::AddOpenFileAction() for STDIN without specifying STDOUT or STDERR."""
|
||||
@@ -58,7 +56,6 @@ class ProcessIOTestCase(TestBase):
|
||||
self.check_process_output(output, output)
|
||||
|
||||
@skipIfWindows # stdio manipulation unsupported on Windows
|
||||
@add_test_categories(['pyapi'])
|
||||
@expectedFlakeyLinux(bugnumber="llvm.org/pr26437")
|
||||
@skipIfDarwinEmbedded # debugserver can't create/write files on the device
|
||||
def test_stdout_redirection(self):
|
||||
@@ -73,7 +70,6 @@ class ProcessIOTestCase(TestBase):
|
||||
self.check_process_output(output, error)
|
||||
|
||||
@skipIfWindows # stdio manipulation unsupported on Windows
|
||||
@add_test_categories(['pyapi'])
|
||||
@expectedFlakeyLinux(bugnumber="llvm.org/pr26437")
|
||||
@skipIfDarwinEmbedded # debugserver can't create/write files on the device
|
||||
def test_stderr_redirection(self):
|
||||
@@ -88,7 +84,6 @@ class ProcessIOTestCase(TestBase):
|
||||
self.check_process_output(output, error)
|
||||
|
||||
@skipIfWindows # stdio manipulation unsupported on Windows
|
||||
@add_test_categories(['pyapi'])
|
||||
@expectedFlakeyLinux(bugnumber="llvm.org/pr26437")
|
||||
@skipIfDarwinEmbedded # debugserver can't create/write files on the device
|
||||
def test_stdout_stderr_redirection(self):
|
||||
|
||||
Reference in New Issue
Block a user