<div dir="ltr">Hello Abid,<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8000001907349px">-        self.expect("\*stopped,reason=</span><span style="font-size:12.8000001907349px">\"signal-received\",signal=\"</span><span style="font-size:12.8000001907349px">17\",stopped-threads=\"all\"")</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">+        self.expect("\*stopped.*")</span><br></blockquote><div>Why did you change *stopped pattern? And why did you do it only in one place?</div><div><br></div><div>Thanks,</div><div>Ilia</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 9, 2015 at 9:14 PM, Hafiz Abid Qadeer <span dir="ltr"><<a href="mailto:hafiz_abid@mentor.com" target="_blank">hafiz_abid@mentor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: abidh<br>
Date: Mon Feb  9 12:14:01 2015<br>
New Revision: 228584<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=228584&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=228584&view=rev</a><br>
Log:<br>
Fix MI notification test case on Linux.<br>
<br>
This test case was checking for a specific stop reason which is different on<br>
Linux. This caused the test to fail. It now only checks for stoppped. Also added<br>
some more steps to run to main so that we dont pass when application has run to<br>
completion.<br>
<br>
<br>
Modified:<br>
    lldb/trunk/test/tools/lldb-mi/TestMiNotification.py<br>
<br>
Modified: lldb/trunk/test/tools/lldb-mi/TestMiNotification.py<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/TestMiNotification.py?rev=228584&r1=228583&r2=228584&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/TestMiNotification.py?rev=228584&r1=228583&r2=228584&view=diff</a><br>
==============================================================================<br>
--- lldb/trunk/test/tools/lldb-mi/TestMiNotification.py (original)<br>
+++ lldb/trunk/test/tools/lldb-mi/TestMiNotification.py Mon Feb  9 12:14:01 2015<br>
@@ -63,7 +63,14 @@ class MiNotificationTestCase(lldbmi_test<br>
         self.expect("\^done")<br>
<br>
         # Test that *stopped is printed<br>
-        self.expect("\*stopped,reason=\"signal-received\",signal=\"17\",stopped-threads=\"all\"")<br>
+        self.expect("\*stopped.*")<br>
+<br>
+        # Run to main to make sure we have not exited the application<br>
+        self.runCmd("-break-insert -f main")<br>
+        self.expect("\^done,bkpt={number=\"1\"")<br>
+        self.runCmd("-exec-continue")<br>
+        self.expect("\^running")<br>
+        self.expect("\*stopped,reason=\"breakpoint-hit\"")<br>
<br>
     @lldbmi_test<br>
     @expectedFailureWindows("<a href="http://llvm.org/pr22274" target="_blank">llvm.org/pr22274</a>: need a pexpect replacement for windows")<br>
<br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@cs.uiuc.edu">lldb-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br>
</blockquote></div><br></div>