mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
[gdb/testsuite] Fix gdb.server/unittest.exp for remote target
With test-case gdb.server/unittest.exp and a build with --disable-unit-tests I get: ... (gdb) builtin_spawn /data/vries/gdb/leap-15-4/build/gdbserver/gdbserver \ --selftest^M Selftests have been disabled for this build.^M UNSUPPORTED: gdb.server/unittest.exp: unit tests ... but with target board remote-stdio-gdbserver I get instead: ... (gdb) builtin_spawn /usr/bin/ssh -t -l vries localhost \ /data/vries/gdb/leap-15-4/build/gdbserver/gdbserver --selftest^M Selftests have been disabled for this build.^M Connection to localhost closed.^M^M FAIL: gdb.server/unittest.exp: unit tests ... Fix this by making the regexp less strict. Tested on x86_64-linux.
This commit is contained in:
parent
593dda1880
commit
b40b8facd5
@ -36,7 +36,7 @@ expect {
|
||||
gdb_assert "$num_ran >= 0" $test
|
||||
}
|
||||
|
||||
-re "Selftests have been disabled for this build.\r\n$" {
|
||||
-re "Selftests have been disabled for this build.\r\n" {
|
||||
unsupported $test
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user