[ was: Re: [PATCH][gdb/testsuite] Rewrite catch-follow-exec.exp ] On 10/24/18 1:47 PM, Tom de Vries wrote: >> I'd suggest replacing >> >> gdb_test_multiple "info prog" "info prog" { >> -i "$gdb_spawn_id" eof { >> fail "info prog" >> } >> -i "$gdb_spawn_id" "No selected thread\." { >> pass "info prog" >> } >> } >> >> with the simpler >> >> gdb_test "info prog" "No selected thread." >> >> If GDB crashes as it did before your fix, the test will be unresolved, which is >> treated the same as a FAIL. > Done. > Btw, I noticed that gdb_test_multiple emits an "ERROR: Process no longer exists" preceding the unresolved message, but does not give details about the process exit status, which might be helpful. How about this patch? Thanks, - Tom