Fix races in mi2-console.exp.
authorMarek Polacek <mpolacek@sourceware.org>
Thu, 23 Jun 2011 09:40:50 +0000 (09:40 +0000)
committerMarek Polacek <mpolacek@sourceware.org>
Thu, 23 Jun 2011 09:40:50 +0000 (09:40 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi2-console.exp

index 1aabd7c9e883c7f140d6b24734bf7d40a119b6d8..3b84b695646baeeaf9f569987e26e111cb31249d 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-23  Marek Polacek  <mpolacek@redhat.com>
+
+        * gdb.mi/mi2-console.exp: Replace gdb_test_multiple with mi_gdb_test.
+
 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
 
         * gdb.mi/mi2-basics.exp: Fix races.  Honour the
index 0d052560aa2f74c9cd485b1e808cf4817ced4dbd..29a44228e47a9c4a3a7de31dde744ed8df590d79 100644 (file)
@@ -48,11 +48,8 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
 mi_run_to_main
 
 # Next over the hello() call which will produce lots of output
-gdb_test_multiple "220-exec-next" "Started step over hello" {
-    -re "220\\^running\r\n(\\*running,thread-id=\"all\"\r\n)?$mi_gdb_prompt" {
-       pass "Started step over hello"
-    }
-}
+mi_gdb_test "220-exec-next" "220\\^running(\r\n)?(\\*running,thread-id=\"all\")?" \
+       "Started step over hello"
 
 if { ![target_info exists gdb,noinferiorio] } {
     gdb_expect {