[Lldb-commits] [lldb] r230320 - Fix MiSignalTestCase.test_lldbmi_stopped_when_stopatentry_xxx tests after r230237
Ilia K
ki.stfu at gmail.com
Tue Feb 24 02:34:34 PST 2015
Author: ki.stfu
Date: Tue Feb 24 04:34:34 2015
New Revision: 230320
URL: http://llvm.org/viewvc/llvm-project?rev=230320&view=rev
Log:
Fix MiSignalTestCase.test_lldbmi_stopped_when_stopatentry_xxx tests after r230237
Modified:
lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py
Modified: lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py?rev=230320&r1=230319&r2=230320&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py (original)
+++ lldb/trunk/test/tools/lldb-mi/signal/TestMiSignal.py Tue Feb 24 04:34:34 2015
@@ -64,11 +64,8 @@ class MiSignalTestCase(lldbmi_testcase.M
self.expect("\^done")
# Test that *stopped is printed
- # Note that message is different in Darwin and Linux:
- # Darwin: "*stopped,reason=\"signal-received\",signal=\"17\",thread-id=\"1\",stopped-threads=\"all\""
- # Linux: "*stopped,reason=\"end-stepping-range\",frame={addr=\"0x[0-9a-f]+\",func=\"??\",args=\[\],file=\"??\",fullname=\"??\",line=\"-1\"},thread-id=\"1\",stopped-threads=\"all\"
- self.expect("\*stopped,reason=\"(signal-received|end-stepping-range)\",.+,thread-id=\"1\",stopped-threads=\"all\"")
-
+ self.expect("\*stopped,reason=\"signal-received\",signal-name=\"SIGINT\",signal-meaning=\"Interrupt\",.*thread-id=\"1\",stopped-threads=\"all\"")
+
# Run to main to make sure we have not exited the application
self.runCmd("-break-insert -f main")
self.expect("\^done,bkpt={number=\"1\"")
@@ -112,7 +109,7 @@ class MiSignalTestCase(lldbmi_testcase.M
self.expect("\^done")
# Test that *stopped is printed
- self.expect("\*stopped,reason=\"signal-received\",signal=\"17\",thread-id=\"1\",stopped-threads=\"all\"")
+ self.expect("\*stopped,reason=\"signal-received\",signal-name=\"SIGINT\",signal-meaning=\"Interrupt\",.*thread-id=\"1\",stopped-threads=\"all\"")
# Exit
self.runCmd("-gdb-exit")
More information about the lldb-commits
mailing list