aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-09-10 16:42:52 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-09-27 16:55:46 -0400
commit59767d3c391672c0437867ac61baa83975ef53d4 (patch)
tree38634c2b3bad094d3925950aae59ae59cd874731 /gdb/testsuite
parent6ab5b6d0f3adc36303d2cc5308a92cf95e2801f9 (diff)
downloadgdb-59767d3c391672c0437867ac61baa83975ef53d4.zip
gdb-59767d3c391672c0437867ac61baa83975ef53d4.tar.gz
gdb-59767d3c391672c0437867ac61baa83975ef53d4.tar.bz2
gdb.base/foll-fork.exp: remove DUPLICATEs
Remove DUPLICATEs, and and at the same time replace two uses of gdb_test_multiple with gdb_test. I don't think using gdb_test_multiple is necessary here. Change-Id: I8dcf097c3364e92d4f0e11f0c0f05dbb88e86742
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/foll-fork.exp20
1 files changed, 6 insertions, 14 deletions
diff --git a/gdb/testsuite/gdb.base/foll-fork.exp b/gdb/testsuite/gdb.base/foll-fork.exp
index a3fa5bf..f777f2b 100644
--- a/gdb/testsuite/gdb.base/foll-fork.exp
+++ b/gdb/testsuite/gdb.base/foll-fork.exp
@@ -194,13 +194,9 @@ proc catch_fork_child_follow {} {
# Verify that the catchpoint is mentioned in an "info breakpoints",
# and further that the catchpoint mentions no process id.
- #
- set test_name "info shows catchpoint without pid"
- gdb_test_multiple "info breakpoints" "$test_name" {
- -re ".*catchpoint.*keep y.*fork\[\r\n\]+$gdb_prompt $" {
- pass "$test_name"
- }
- }
+ gdb_test "info breakpoints" \
+ ".*catchpoint.*keep y.*fork\[\r\n\]+" \
+ "info breakpoints before fork"
gdb_test "continue" \
"Catchpoint \[0-9\]* \\(forked process \[0-9\]*\\),.*" \
@@ -208,13 +204,9 @@ proc catch_fork_child_follow {} {
# Verify that the catchpoint is mentioned in an "info breakpoints",
# and further that the catchpoint managed to capture a process id.
- #
- set test_name "info shows catchpoint without pid"
- gdb_test_multiple "info breakpoints" "$test_name" {
- -re ".*catchpoint.*keep y.*fork, process.*$gdb_prompt $" {
- pass "$test_name"
- }
- }
+ gdb_test "info breakpoints" \
+ ".*catchpoint.*keep y.*fork, process.*" \
+ "info breakpoints after fork"
gdb_test_no_output "set follow-fork child"