When running test-case gdb.base/multi-forks.exp with target board readnow, we
run into:
...
FAIL: gdb.base/multi-forks.exp: run to exit 1 (timeout)
...
Fix this by using exp_continue.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-10-27 Tom de Vries <tdevries@suse.de>
* gdb.base/multi-forks.exp: Use exp_continue to fix timeout.
+2020-10-27 Tom de Vries <tdevries@suse.de>
+
+ * gdb.base/multi-forks.exp: Use exp_continue to fix timeout.
+
2020-10-27 Tom de Vries <tdevries@suse.de>
* gdb.base/maint.exp: Update for -readnow.
#
for {set i 1} {$i <= 15} {incr i} {
- gdb_test "continue" "Breakpoint .* main .*exit.*" "run to exit $i"
+ gdb_test_multiple "continue" "run to exit $i" {
+ -re "Continuing\.\r\n" {
+ exp_continue
+ }
+ -re "\[New inferior $decimal \\(process $decimal\\)\]\r\n" {
+ exp_continue
+ }
+ -re -wrap "Breakpoint .* main .*exit.*" {
+ pass $gdb_test_name
+ }
+ }
gdb_test "info inferior" " 2 .* 3 .* 4 .* 5 .*" "info inferior $i"
gdb_test "inferior $i + 1" "(_dl_sysinfo_int80|fork|__kernel_(v|)syscall).*" \
"inferior $i"