diff options
author | Ben Elliston <bje@gnu.org> | 2011-03-03 00:04:48 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2011-03-03 00:04:48 +1100 |
commit | 119f94fff1cf10945c8df44b903c2ff430107e68 (patch) | |
tree | 7d399ea58b854aae806f5694a279a7cace270fb7 /lib/remote.exp | |
parent | fd708571bd2853ea9ad8fcf15b22c0a71b57cd3a (diff) | |
download | dejagnu-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.exp | 6 |
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 } } |