gdb/testsuite: Don't attempt tests if they fail to compile
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 11 Jan 2018 18:58:10 +0000 (18:58 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 12 Jan 2018 22:38:30 +0000 (22:38 +0000)
commitcbcdb1aaddb4dd1a388eadbea6b6ec342c7ab067
tree578de38e2fba7a73a91e726f478b7fd8df60b17c
parentba643918cf869fa0d064d733f69b453b6fe642ea
gdb/testsuite: Don't attempt tests if they fail to compile

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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/whatis-ptype-typedefs.exp