]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.threads/attach-slow-waitpid.exp
[gdb/testsuite] Bail out after gdb_start error in gdb.threads/attach-slow-waitpid.exp
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.threads / attach-slow-waitpid.exp
index a7005a0f9bde60334b43c5295b2ea5e08ed0fe48..a294f7158f32a5a8e97485c7e574893f95031f02 100644 (file)
@@ -88,7 +88,12 @@ set test_spawn_id [spawn_wait_for_attach $binfile]
 set testpid [spawn_id_get_pid $test_spawn_id]
 
 # Start GDB with preload library in place.
-gdb_spawn_with_ld_preload $libobj
+if { [gdb_spawn_with_ld_preload $libobj] == -1 } {
+    # Make sure we get UNTESTED rather than UNRESOLVED.
+    set errcnt 0
+    untested "Couldn't start GDB with preloaded lib"
+    return -1
+}
 
 # Load binary, and attach to running program.
 gdb_load ${binfile}