Index: gdb/testsuite/gdb.mi/mi-nsmoribund.exp |
diff --git a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp |
index 0c16e85b557a77c74c8f2ddc7108be481e0f7d71..0c83bb9f4ac1f02e304919d0dd6745d764e494b6 100644 |
--- a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp |
+++ b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp |
@@ -29,11 +29,9 @@ if {[mi_gdb_start]} { |
# |
# Start here |
# |
-set testfile "nsmoribund" |
-set srcfile "$testfile.c" |
-set binfile "$objdir/$subdir/mi-$testfile" |
+standard_testfile nsmoribund.c |
-set options [list debug incdir=$objdir] |
+set options [list debug] |
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } { |
return -1 |
} |
@@ -118,9 +116,9 @@ mi_check_thread_states \ |
# we are interested in, so we can't use mi_gdb_test or |
# gdb_test_multiple (or an MI equivalent) |
-send_gdb "102-break-delete\n" |
-send_gdb "print done = 1\n" |
-send_gdb "103-exec-continue --all\n" |
+mi_gdb_test "102-break-delete" "102\\^done.*" |
+mi_gdb_test "print done = 1" { = 1"} |
+mi_gdb_test "103-exec-continue --all" "\[^\n\]*\r\n$running_re" |
gdb_expect { |
-re "\\*stopped,reason=\"exited-normally\"" { |