aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-03-11 14:58:59 +0100
committerTom de Vries <tdevries@suse.de>2020-03-11 14:58:59 +0100
commit7462c383f9849aab40f156854a72f0a93305124a (patch)
tree162325a798112f5d797940119e63c1e8331a9055 /gdb/testsuite
parent1c6c46a012a43aefb6183fa2dd16ec6db5751aa3 (diff)
downloadgdb-7462c383f9849aab40f156854a72f0a93305124a.zip
gdb-7462c383f9849aab40f156854a72f0a93305124a.tar.gz
gdb-7462c383f9849aab40f156854a72f0a93305124a.tar.bz2
[gdb/testsuite] Fix FAILs due to verbose in foll-fork.exp
When running test-case gdb.base/foll-fork.exp, I see: ... (gdb) catch fork^M Catchpoint 2 (fork)^M Reading in symbols for ../sysdeps/x86/libc-start.c...^M (gdb) FAIL: gdb.base/foll-fork.exp: explicit child follow, set catch fork ... The problem is that the test regexp does not expect the "Reading in symbols" message: ... gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)" \ "explicit child follow, set catch fork" ... which is generated due to the verbose setting. Fix this by allowing the message in the regexp. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-03-11 Tom de Vries <tdevries@suse.de> * gdb.base/foll-fork.exp: Allow "Reading in symbols" messages.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/foll-fork.exp10
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8a7ca8e..d7de4e7 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2020-03-11 Tom de Vries <tdevries@suse.de>
+ * gdb.base/foll-fork.exp: Allow "Reading in symbols" messages.
+
+2020-03-11 Tom de Vries <tdevries@suse.de>
+
* gdb.base/break-interp.exp: Limit verbose scope.
2020-03-11 Tom de Vries <tdevries@suse.de>
diff --git a/gdb/testsuite/gdb.base/foll-fork.exp b/gdb/testsuite/gdb.base/foll-fork.exp
index 27bbb44..788a6c9 100644
--- a/gdb/testsuite/gdb.base/foll-fork.exp
+++ b/gdb/testsuite/gdb.base/foll-fork.exp
@@ -179,13 +179,17 @@ proc test_follow_fork { who detach cmd } {
}
}
+set reading_in_symbols_re {(?:\r\nReading in symbols for [^\r\n]*)?}
+
proc catch_fork_child_follow {} {
global gdb_prompt
global srcfile
+ global reading_in_symbols_re
set bp_after_fork [gdb_get_line_number "set breakpoint here"]
- gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)" \
+ gdb_test "catch fork" \
+ "Catchpoint \[0-9\]* \\(fork\\)$reading_in_symbols_re" \
"explicit child follow, set catch fork"
# Verify that the catchpoint is mentioned in an "info breakpoints",
@@ -285,10 +289,12 @@ proc catch_fork_unpatch_child {} {
proc tcatch_fork_parent_follow {} {
global gdb_prompt
global srcfile
+ global reading_in_symbols_re
set bp_after_fork [gdb_get_line_number "set breakpoint here"]
- gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)" \
+ gdb_test "catch fork" \
+ "Catchpoint \[0-9\]* \\(fork\\)$reading_in_symbols_re" \
"explicit parent follow, set tcatch fork"
# ??rehrauer: I don't yet know how to get the id of the tcatch