[gdb/testsuite] Make skip_libstdcxx_probe_tests return 1 if true
authorTom de Vries <tdevries@suse.de>
Mon, 26 Aug 2019 16:48:02 +0000 (18:48 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 26 Aug 2019 16:48:02 +0000 (18:48 +0200)
commitb694989f508a83dd7c1f5d0d08716439d312e1cb
tree2892923838fefd1b187685a74a553a7c413ceeee
parentd9c4ba536c522b8dc2194d4100270a159be7894a
[gdb/testsuite] Make skip_libstdcxx_probe_tests return 1 if true

The tcl proc skip_libstdcxx_probe_tests currently returns 0 if the probe tests
need to be skipped, while tcl interprets 0 as false rather than true, which is
confusing.

Fix this by making skip_libstdcxx_probe_tests return 1 if the probe tests need
to be skipped.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-08-26  Tom de Vries  <tdevries@suse.de>

* lib/gdb.exp (skip_libstdcxx_probe_tests_prompt): Return 1 if probe
* tests need to be skipped.
* gdb.cp/exceptprint.exp: Update call to skip_libstdcxx_probe_tests.
* gdb.mi/mi-catch-cpp-exceptions.exp: Update call to
mi_skip_libstdcxx_probe_tests.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/exceptprint.exp
gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
gdb/testsuite/lib/gdb.exp