This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] gdb.base/condbreak.exp: make all test names unique
- To: gdb-patches at sources dot redhat dot com
- Subject: [RFA] gdb.base/condbreak.exp: make all test names unique
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Sun, 20 May 2001 05:09:42 -0700
This patch changes gdb.base/condbreak.exp to make all test names unique.
Testing: I tested this on native Red Hat Linux 7 and native Solaris 2.8.
OK to apply?
Michael
===
2001-05-19 Michael Chastain <chastain@redhat.com>
* gdb.base/condbreak.exp: Make all test names unique.
Index: gdb/testsuite/gdb.base/condbreak.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/condbreak.exp,v
retrieving revision 1.2
diff -c -3 -p -r1.2 condbreak.exp
*** condbreak.exp 2001/03/06 08:21:50 1.2
--- condbreak.exp 2001/05/20 06:30:45
***************
*** 1,4 ****
! # Copyright 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
--- 1,4 ----
! # Copyright 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
*************** gdb_test "break main" \
*** 66,106 ****
# test conditional break at function
#
gdb_test "break marker1 if 1==1" \
! "Breakpoint.*at.* file .*$srcfile, line.*" \
! "break function if condition"
! gdb_test "delete 2" \
! "" \
! "delete break"
#
# test conditional break at line number
#
gdb_test "break 79 if 1==1" \
! "Breakpoint.*at.* file .*$srcfile, line 79\\." \
! "break line if condition"
! gdb_test "delete 3" \
! "" \
! "delete break"
#
# test conditional break at function
#
gdb_test "break marker1 if (1==1)" \
! "Breakpoint.*at.* file .*$srcfile, line.*" \
! "break function if (condition)"
#
# test conditional break at line number
#
gdb_test "break 79 if (1==1)" \
! "Breakpoint.*at.* file .*$srcfile, line 79\\." \
! "break line if (condition)"
gdb_test "break marker2 if (a==43)" \
! "Breakpoint.*at.* file .*$srcfile, line.*" \
! "break function if (condition)"
#
# check to see what breakpoints are set
--- 66,97 ----
# test conditional break at function
#
gdb_test "break marker1 if 1==1" \
! "Breakpoint.*at.* file .*$srcfile, line.*"
! gdb_test "delete 2" ""
#
# test conditional break at line number
#
gdb_test "break 79 if 1==1" \
! "Breakpoint.*at.* file .*$srcfile, line 79\\."
! gdb_test "delete 3" ""
#
# test conditional break at function
#
gdb_test "break marker1 if (1==1)" \
! "Breakpoint.*at.* file .*$srcfile, line.*"
#
# test conditional break at line number
#
gdb_test "break 79 if (1==1)" \
! "Breakpoint.*at.* file .*$srcfile, line 79\\."
gdb_test "break marker2 if (a==43)" \
! "Breakpoint.*at.* file .*$srcfile, line.*"
#
# check to see what breakpoints are set