if { $res < 0 || $res == "" } {
untested "spawning $binfile-standalone failed"
return 1
-} else {
- pass "collect standalone signals state"
}
+
+set wait_status [remote_wait target 60]
+set have_standalone [expr [lindex $wait_status 0] == 0]
+gdb_assert { $have_standalone } "collect standalone signals state"
remote_close target
# Now run the program through gdb, and dump its initial signal actions
gdb_continue_to_end "collect signals state under gdb"
+set test "signals states are identical"
+if { ! $have_standalone } {
+ untested $test
+ return -1
+}
+
if {!$purely_local} {
# Copy file from target to host through build.
remote_download host [remote_upload target gdb.txt] gdb.txt
# Diff the .txt files. They should be identical.
gdb_test "shell diff -s $standalone_txt $gdb_txt" \
"Files .* are identical.*" \
- "signals states are identical"
+ $test