Fix pathname prefix and timeout issues in gdb.mi/mi-pending.exp.
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 18 Sep 2015 18:52:26 +0000 (11:52 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Fri, 18 Sep 2015 18:52:26 +0000 (11:52 -0700)
2015-09-18  Sandra Loosemore  <sandra@codesourcery.com>

gdb/testsuite/
* gdb.mi/mi-pending.exp: Don't use directory prefix when setting
the pending breakpoint.  Remove timeout override for "Run till
MI pending breakpoint on pendfunc3 on thread 2" test.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-pending.exp

index e7a7d3a7fb7a9886149a70f95562b43d55b798be..7eae863887ad2bb225a371b5c9d2823fda00b8f6 100644 (file)
@@ -1,3 +1,9 @@
+2015-09-18  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * gdb.mi/mi-pending.exp: Don't use directory prefix when setting
+       the pending breakpoint.  Remove timeout override for "Run till
+       MI pending breakpoint on pendfunc3 on thread 2" test.
+
 2015-09-18  Sandra Loosemore  <sandra@codesourcery.com>
 
        * gdb.mi/mi-cli.exp: Don't require directory prefix in breakpoint
index 88c68702544ed72aac6e4231b1c5a01fb1a8a091..5426db55ebbace0bd7ce40cce135ce04f76429ab 100644 (file)
@@ -64,8 +64,8 @@ mi_gdb_test "-break-insert -f pendfunc1" \
     "MI pending breakpoint on pendfunc1"
 
 # Set pending breakpoint with a condition via MI.
-mi_gdb_test "-break-insert -f -c x==4 ${libsrc1}:pendfunc2" \
-    ".*\\^done,bkpt=\{number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"<PENDING>\",pending=\"${libsrc1}:pendfunc2\",cond=\"x==4\",times=\"0\",original-location=\"${libsrc1}:pendfunc2\"\}"\
+mi_gdb_test "-break-insert -f -c x==4 ${libfile1}.c:pendfunc2" \
+    ".*\\^done,bkpt=\{number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"<PENDING>\",pending=\"${libfile1}.c:pendfunc2\",cond=\"x==4\",times=\"0\",original-location=\"${libfile1}.c:pendfunc2\"\}"\
     "MI pending breakpoint on ${libfile1}.c:pendfunc2 if x==4"
 
 # Set breakpoint so that we can stop when the thread is created
@@ -112,7 +112,7 @@ mi_send_resuming_command "exec-continue" "continuing execution to thread conditi
 
 # Check if we stopped in thread 2 like we should.
 set testname "Run till MI pending breakpoint on pendfunc3 on thread 2"
-gdb_expect {
+gdb_expect {
     -re "\\*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"4\",frame=\{addr=\"$hex\",func=\"pendfunc3\".*thread-id=\"2\".*" {
        pass $testname
        return 0