aboutsummaryrefslogtreecommitdiff
path: root/elfcpp/elfcpp_internal.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-03-02 20:05:25 +0000
committerPedro Alves <palves@redhat.com>2015-03-02 20:05:25 +0000
commit28054d694f6794d2866d22073117897e372803f2 (patch)
treeeaff37f00c150ceb826dec1547918198e3096c86 /elfcpp/elfcpp_internal.h
parent2c7b626ceef8ee50d6ef6fb575cfe55b93ef7a0f (diff)
downloadgdb-28054d694f6794d2866d22073117897e372803f2.zip
gdb-28054d694f6794d2866d22073117897e372803f2.tar.gz
gdb-28054d694f6794d2866d22073117897e372803f2.tar.bz2
gdb_test_multiple: return -1 on internal error
gdb_test_multiple is supposed to return -1 on internal error: # Returns: # 1 if the test failed, according to a built-in failure pattern # 0 if only user-supplied patterns matched # -1 if there was an internal error. But alas, that's broken, it returns success... It looks like the code is assuming an earlier 'set result -1' is still in effect, but 'result' is set to 0 at the end, just before we call gdb_expect: set result 0 set code [catch {gdb_expect $code} string] gdb/testsuite/ 2015-03-02 Pedro Alves <palves@redhat.com> * lib/gdb.exp (gdb_test_multiple) <internal error>: Set result to -1.
Diffstat (limited to 'elfcpp/elfcpp_internal.h')
0 files changed, 0 insertions, 0 deletions