[Lldb-commits] [lldb] c30c236 - [lldb/Reproducers] Skip tests relying on timeouts

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed May 27 12:08:53 PDT 2020


Author: Jonas Devlieghere
Date: 2020-05-27T12:08:41-07:00
New Revision: c30c2368c77f05a1447bb7442c6ac2fad2912a57

URL: https://github.com/llvm/llvm-project/commit/c30c2368c77f05a1447bb7442c6ac2fad2912a57
DIFF: https://github.com/llvm/llvm-project/commit/c30c2368c77f05a1447bb7442c6ac2fad2912a57.diff

LOG: [lldb/Reproducers] Skip tests relying on timeouts

The reproducer don't model timeouts so tests that rely on them end up
with unexpected packets during replay. Skip them until we can handle
this scenario.

Added: 
    

Modified: 
    lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py
    lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py b/lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py
index d7d963390b05..3423ec6e6ab9 100644
--- a/lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py
+++ b/lldb/test/API/commands/expression/no-deadlock/TestExprDoesntBlock.py
@@ -17,6 +17,7 @@ class ExprDoesntDeadlockTestCase(TestBase):
 
     @expectedFailureAll(oslist=['freebsd'], bugnumber='llvm.org/pr17946')
     @add_test_categories(["basic_process"])
+    @skipIfReproducer # Timeouts are not currently modeled.
     def test_with_run_command(self):
         """Test that expr will time out and allow other threads to run if it blocks."""
         self.build()

diff  --git a/lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py b/lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py
index 42e28a5a440a..36ed7ce26de1 100644
--- a/lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py
+++ b/lldb/test/API/commands/expression/timeout/TestCallWithTimeout.py
@@ -26,6 +26,7 @@ def setUp(self):
         oslist=[
             "windows"],
         bugnumber="llvm.org/pr21765")
+    @skipIfReproducer # Timeouts are not currently modeled.
     def test(self):
         """Test calling std::String member function."""
         self.build()


        


More information about the lldb-commits mailing list