Robustify mi-simplerun.
authorVladimir Prus <vladimir@codesourcery.com>
Fri, 13 Jun 2008 19:53:42 +0000 (19:53 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Fri, 13 Jun 2008 19:53:42 +0000 (19:53 +0000)
        * gdb.mi/basics.c (main): Add a call to sleep.
        * gdb.mi/mi-cli.exp: Adjust for change in line numbers.
        * gdb.mi/mi2-cli.exp: Likewise.
        * gdb.mi/mi-break.exp: Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/basics.c
gdb/testsuite/gdb.mi/mi-break.exp
gdb/testsuite/gdb.mi/mi-cli.exp
gdb/testsuite/gdb.mi/mi2-cli.exp

index 35a3ee4645a7cfb9e1e481ce596a3d8249128ceb..65a6335202ed1f8d5feb101208d58a4337e52910 100644 (file)
@@ -1,3 +1,11 @@
+2008-06-13  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Robustify mi-simplerun.
+        * gdb.mi/basics.c (main): Add a call to sleep.
+        * gdb.mi/mi-cli.exp: Adjust for change in line numbers.
+        * gdb.mi/mi2-cli.exp: Likewise.
+        * gdb.mi/mi-break.exp: Likewise.
+
 2008-06-11  Vladimir Prus  <vladimir@codesourcery.com>
 
        * gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop.
index e4be7b2a5e2093d7b14ffaf70825716d151eb4f6..43e18165347375ddab2dd137c23b4fa2bac88574 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <stdio.h>
+#include <unistd.h>
 
 int callee4 (void)
 {
@@ -61,6 +62,7 @@ main ()
   callee1 (2, "A string argument.", 3.5);
   callee1 (2, "A string argument.", 3.5);
 
+  sleep (1);
   printf ("Hello, World!");
 
   callme (1);
@@ -68,10 +70,3 @@ main ()
 
   return 0;
 }
-
-/*
-Local variables: 
-change-log-default-name: "ChangeLog-mi"
-End: 
-*/
-
index b3fc551c7e0fed7fe0d5021ba8ba33d06752fb92..2776fda4ae6ad83bcab11abcd1cd9a3779df4803 100644 (file)
@@ -158,7 +158,7 @@ proc test_ignore_count {} {
 
     mi_run_cmd
 
-    mi_expect_stop "breakpoint-hit" "callme" "\{name=\"i\",value=\"2\"\}" ".*basics.c" "51" \
+    mi_expect_stop "breakpoint-hit" "callme" "\{name=\"i\",value=\"2\"\}" ".*basics.c" "52" \
         {"" "disp=\"keep\"" } "run to breakpoint with ignore count"
 }
 
index c488449fb59e9f568d3c3b1b1b6f0a3797c8876c..37c484bb985ae6b75c04f32b59d41593e5121657 100644 (file)
@@ -96,7 +96,7 @@ mi_gdb_test "-interpreter-exec console \"list\"" \
   ".*\~\"$line_main_body\[\\\\t \]*callee1.*;\\\\n\".*\\^done" \
   "-interpreter-exec console \"list\""
 
-mi_execute_to "exec-continue" "breakpoint-hit" "callee4" "" ".*basics.c" "27" \
+mi_execute_to "exec-continue" "breakpoint-hit" "callee4" "" ".*basics.c" "28" \
     { "" "disp=\"keep\"" } "continue to callee4"
 
 # NOTE: cagney/2003-02-03: Not yet.
index d9e34679d4c1685bd71854c3cb8da338d1f36426..0f5a7714f34f0eae23848860a8bf7ad88712b251 100644 (file)
@@ -96,7 +96,7 @@ mi_gdb_test "-interpreter-exec console \"list\"" \
   ".*\~\"$line_main_body\[\\\\t \]*callee1.*;\\\\n\".*\\^done" \
   "-interpreter-exec console \"list\""
 
-mi_execute_to "exec-continue" "breakpoint-hit" "callee4" "" ".*basics.c" "27" \
+mi_execute_to "exec-continue" "breakpoint-hit" "callee4" "" ".*basics.c" "28" \
     { "" "disp=\"keep\"" } \
     "continue to callee4"