[Lldb-commits] [lldb] 135a493 - Fix TestNoGPacketSupported on linux

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 11 08:28:24 PST 2019


Author: Pavel Labath
Date: 2019-11-11T17:29:48+01:00
New Revision: 135a493f34561219d67251b58a482cd3fc6416b9

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

LOG: Fix TestNoGPacketSupported on linux

The mock server pretends the process stopped with signal 17, which is
SIGCHLD on linux. This causes lldb to resume to process, utterly
confusing the test. Lldb probably shouldn't resume in this case, but for
now this issue can be fixed by changing the signal number to 2, which is
SIGINT just about anywhere.

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py
index 989684c62229..c9404d41924a 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py
@@ -26,10 +26,10 @@ class TestNoGPacketSupported(GDBRemoteTestBase):
     def test(self):
         class MyResponder(MockGDBServerResponder):
             def haltReason(self):
-                return "T11thread:1ff0d;threads:1ff0d;thread-pcs:000000010001bc00;00:7882773ce0ffffff;01:1122334455667788;03:00bc010001000000;"
+                return "T02thread:1ff0d;threads:1ff0d;thread-pcs:000000010001bc00;00:7882773ce0ffffff;01:1122334455667788;03:00bc010001000000;"
 
             def threadStopInfo(self, threadnum):
-                return "T11thread:1ff0d;threads:1ff0d;thread-pcs:000000010001bc00;00:7882773ce0ffffff;01:1122334455667788;03:00bc010001000000;"
+                return "T02thread:1ff0d;threads:1ff0d;thread-pcs:000000010001bc00;00:7882773ce0ffffff;01:1122334455667788;03:00bc010001000000;"
 
             def writeRegisters(self):
                 return "E02"


        


More information about the lldb-commits mailing list