diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2011-12-02 23:58:01 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2011-12-02 23:58:01 +0000 |
commit | d6d7a51a335f4002a7c0181d4eb789f6239cce29 (patch) | |
tree | eb9d2d18c09ff09b5d277a8d78fd2a21f7e040ab /gdb/testsuite/lib | |
parent | a07f218d865687dbd67aa53418dbb39c14164dc1 (diff) | |
download | gdb-d6d7a51a335f4002a7c0181d4eb789f6239cce29.zip gdb-d6d7a51a335f4002a7c0181d4eb789f6239cce29.tar.gz gdb-d6d7a51a335f4002a7c0181d4eb789f6239cce29.tar.bz2 |
* lib/gdb.exp (gdb_expect): Pass all the exception conditions up
to the caller.
(gdb_test_multiple): Likewise.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 6115285..8ac32db 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -844,11 +844,7 @@ proc gdb_test_multiple { command message user_code } { if {$code == 1} { global errorInfo errorCode; return -code error -errorinfo $errorInfo -errorcode $errorCode $string - } elseif {$code == 2} { - return -code return $string - } elseif {$code == 3} { - return - } elseif {$code > 4} { + } elseif {$code > 1} { return -code $code $string } return $result @@ -2640,11 +2636,7 @@ proc gdb_expect { args } { global errorInfo errorCode; return -code error -errorinfo $errorInfo -errorcode $errorCode $string - } elseif {$code == 2} { - return -code return $string - } elseif {$code == 3} { - return - } elseif {$code > 4} { + } else { return -code $code $string } } |