Fix mi-pending.exp test output to allow stable test diffing

Message ID 1427218368-5087-1-git-send-email-antoine.tremblay@ericsson.com
State New, archived
Headers

Commit Message

Antoine Tremblay March 24, 2015, 5:32 p.m. UTC
  /* Not part of the commit comment 
This gives the following output :
PASS: gdb.mi/mi-pending.exp: MI pending breakpoint on mi-pendshr.c:pendfunc2 if x==4
*/

gdb/testsuite/ChangeLog:

	* gdb.mi/mi-pending.exp: Fix output of breakpoint test.
---
 gdb/testsuite/gdb.mi/mi-pending.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Pedro Alves March 24, 2015, 5:47 p.m. UTC | #1
Thanks.  Please push.

Thanks,
Pedro Alves

On 03/24/2015 05:32 PM, Antoine Tremblay wrote:
> /* Not part of the commit comment 
> This gives the following output :
> PASS: gdb.mi/mi-pending.exp: MI pending breakpoint on mi-pendshr.c:pendfunc2 if x==4
> */
> 
> gdb/testsuite/ChangeLog:
> 
> 	* gdb.mi/mi-pending.exp: Fix output of breakpoint test.
> ---
>  gdb/testsuite/gdb.mi/mi-pending.exp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gdb/testsuite/gdb.mi/mi-pending.exp b/gdb/testsuite/gdb.mi/mi-pending.exp
> index e289cd9..88c6870 100644
> --- a/gdb/testsuite/gdb.mi/mi-pending.exp
> +++ b/gdb/testsuite/gdb.mi/mi-pending.exp
> @@ -66,7 +66,7 @@ mi_gdb_test "-break-insert -f 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 pending breakpoint on ${libsrc1}:pendfunc2 if x==4"
> +    "MI pending breakpoint on ${libfile1}.c:pendfunc2 if x==4"
>  
>  # Set breakpoint so that we can stop when the thread is created
>  mi_gdb_test "-break-insert -f thread_func" \
>
  

Patch

diff --git a/gdb/testsuite/gdb.mi/mi-pending.exp b/gdb/testsuite/gdb.mi/mi-pending.exp
index e289cd9..88c6870 100644
--- a/gdb/testsuite/gdb.mi/mi-pending.exp
+++ b/gdb/testsuite/gdb.mi/mi-pending.exp
@@ -66,7 +66,7 @@  mi_gdb_test "-break-insert -f 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 pending breakpoint on ${libsrc1}:pendfunc2 if x==4"
+    "MI pending breakpoint on ${libfile1}.c:pendfunc2 if x==4"
 
 # Set breakpoint so that we can stop when the thread is created
 mi_gdb_test "-break-insert -f thread_func" \