aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-04-15 12:49:51 +0100
committerPedro Alves <palves@redhat.com>2014-04-15 12:49:51 +0100
commit7dd6df0171796757f404a549c76f0d9b9192c849 (patch)
tree2c49af29901d4092d77e6237275b28fad807021f
parent170015c5a013f0036073ebc3d455c379371edc27 (diff)
downloadbinutils-7dd6df0171796757f404a549c76f0d9b9192c849.zip
binutils-7dd6df0171796757f404a549c76f0d9b9192c849.tar.gz
binutils-7dd6df0171796757f404a549c76f0d9b9192c849.tar.bz2
gdb.base/sym-file.exp: clean up test messages a bit.
Remove regex characters from test message, and don't refer to breakpoint numbers in test messages (subsequent patches will add more breakpoints, changing these numbers). Result: -PASS: gdb.base/sym-file.exp: add-symbol-file .*sym-file-lib\.so addr +PASS: gdb.base/sym-file.exp: add-symbol-file sym-file-lib.so addr -PASS: gdb.base/sym-file.exp: check if Breakpoint 2 is pending. -PASS: gdb.base/sym-file.exp: check if Breakpoint 3 is pending. +PASS: gdb.base/sym-file.exp: breakpoint at foo is pending +PASS: gdb.base/sym-file.exp: breakpoint at bar is pending gdb/testsuite/ 2014-04-15 Pedro Alves <palves@redhat.com> * gdb.base/sym-file.exp: Remove regex characters from test message. Don't refer to breakpoint numbers in test messages.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/sym-file.exp6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 4ead639..0d773b6 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-15 Pedro Alves <palves@redhat.com>
+
+ * gdb.base/sym-file.exp: Remove regex characters from test
+ message. Don't refer to breakpoint numbers in test messages.
+
2014-04-14 Keith Seitz <keiths@redhat.com>
PR c++/16253
diff --git a/gdb/testsuite/gdb.base/sym-file.exp b/gdb/testsuite/gdb.base/sym-file.exp
index 5d19f3b..9ee12e5 100644
--- a/gdb/testsuite/gdb.base/sym-file.exp
+++ b/gdb/testsuite/gdb.base/sym-file.exp
@@ -89,7 +89,7 @@ if {!$result} then {
# 3) Add $shlib_name using 'add-symbol-file'.
set result [gdb_test "add-symbol-file ${shlib_name} addr" \
"Reading symbols from .*${lib_basename}\\.so\\.\\.\\.done\\." \
- "add-symbol-file .*${lib_basename}\\.so addr" \
+ "add-symbol-file ${lib_basename}.so addr" \
"add symbol table from file \".*${lib_basename}\\.so\"\
at.*\\(y or n\\) " \
"y"]
@@ -148,11 +148,11 @@ gdb_test "info files" \
# $shlib_name.
gdb_test "info breakpoints 2" \
".*PENDING.*" \
- "check if Breakpoint 2 is pending."
+ "breakpoint at foo is pending"
gdb_test "info breakpoints 3" \
".*PENDING.*" \
- "check if Breakpoint 3 is pending."
+ "breakpoint at bar is pending"
# 13) Check that the execution can continue without error.
gdb_continue_to_end