In the gdb.base/whatis-ptype-typedefs.exp test, if the test program
fails to compile, don't run the tests.
gdb/testsuite/ChangeLog:
* gdb.base/whatis-ptype-typedefs.exp: Don't run tests if we failed
to prepare.
(prepare): Return 0 on error, 1 on success.
+2018-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.base/whatis-ptype-typedefs.exp: Don't run tests if we failed
+ to prepare.
+ (prepare): Return 0 on error, 1 on success.
+
2018-01-12 Pedro Alves <palves@redhat.com>
* gdb.base/continue-after-aborted-step-over.c: New.
if { [prepare_for_testing "failed to prepare" \
${out} [list $srcfile] $options] } {
- return -1
+ return 0
}
if ![runto_main] then {
fail "can't run to main"
return 0
}
+
+ return 1
}
# The following list is layed out as a table. It is composed by
}
foreach_with_prefix lang {"c" "c++"} {
- prepare $lang
- run_tests $lang
+ if { [prepare $lang] } then {
+ run_tests $lang
+ }
}