summaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2011-12-02 23:58:00 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2011-12-02 23:58:00 +0000
commit3501a7853947bd8258c0bec76b4f12a2b05e0940 (patch)
tree3184dcb0a5fbf9d247a6dea56c04117dbe5f3016 /gdb/testsuite/lib
parent6278d082f8ab0d441d10b69e8ed6f6c6910660ec (diff)
downloadgdb-3501a7853947bd8258c0bec76b4f12a2b05e0940.tar.gz
* 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.exp12
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 61152858692..8ac32db793d 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
}
}