aboutsummaryrefslogtreecommitdiff
path: root/lib/remote.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2011-03-03 00:04:48 +1100
committerBen Elliston <bje@gnu.org>2011-03-03 00:04:48 +1100
commit119f94fff1cf10945c8df44b903c2ff430107e68 (patch)
tree7d399ea58b854aae806f5694a279a7cace270fb7 /lib/remote.exp
parentfd708571bd2853ea9ad8fcf15b22c0a71b57cd3a (diff)
downloaddejagnu-119f94fff1cf10945c8df44b903c2ff430107e68.zip
dejagnu-119f94fff1cf10945c8df44b903c2ff430107e68.tar.gz
dejagnu-119f94fff1cf10945c8df44b903c2ff430107e68.tar.bz2
2011-03-03 Maciej W. Rozycki <macro@codesourcery.com>
* lib/remote.exp (remote_expect): Pass all exception conditions up to the caller.
Diffstat (limited to 'lib/remote.exp')
-rw-r--r--lib/remote.exp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/remote.exp b/lib/remote.exp
index abe8b20..8a26518 100644
--- a/lib/remote.exp
+++ b/lib/remote.exp
@@ -1256,11 +1256,7 @@ proc remote_expect { board timeout args } {
if {$code == 1} {
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
}
}