diff options
| author | Tatyana Krasnukha <tatyana@synopsys.com> | 2021-02-04 01:02:31 +0300 |
|---|---|---|
| committer | Tatyana Krasnukha <tatyana@synopsys.com> | 2021-02-08 15:10:48 +0300 |
| commit | 05d7d6949c7cd3f1566d4c8394fa59160a7ffd05 (patch) | |
| tree | 7bcea3bbf63b43121fd01844974bb10afc467cd8 /lldb/test/API/python_api/process | |
| parent | f9c5e1664e081031e7deec3df49953952771d21b (diff) | |
[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.
Diffstat (limited to 'lldb/test/API/python_api/process')
| -rw-r--r-- | lldb/test/API/python_api/process/TestProcessAPI.py | 6 | ||||
| -rw-r--r-- | lldb/test/API/python_api/process/io/TestProcessIO.py | 5 |
2 files changed, 0 insertions, 11 deletions
diff --git a/lldb/test/API/python_api/process/TestProcessAPI.py b/lldb/test/API/python_api/process/TestProcessAPI.py index 7174ba1c64c4..942e2616c409 100644 --- a/lldb/test/API/python_api/process/TestProcessAPI.py +++ b/lldb/test/API/python_api/process/TestProcessAPI.py @@ -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.""" diff --git a/lldb/test/API/python_api/process/io/TestProcessIO.py b/lldb/test/API/python_api/process/io/TestProcessIO.py index 3f210bc71bef..312cc28aaa0e 100644 --- a/lldb/test/API/python_api/process/io/TestProcessIO.py +++ b/lldb/test/API/python_api/process/io/TestProcessIO.py @@ -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): |
