diff options
author | Ben Elliston <bje@gnu.org> | 2016-03-28 11:51:41 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2016-03-28 11:51:41 +1100 |
commit | 883ffd3e6dcedfccb39969fd9791e70c901410ec (patch) | |
tree | c9026d0e7d39068361acf297d37b88725eae6b8a /lib/target.exp | |
parent | a57bfcfb68c3ac388a5ba5b2baca8e8c1195690b (diff) | |
download | dejagnu-883ffd3e6dcedfccb39969fd9791e70c901410ec.zip dejagnu-883ffd3e6dcedfccb39969fd9791e70c901410ec.tar.gz dejagnu-883ffd3e6dcedfccb39969fd9791e70c901410ec.tar.bz2 |
* runtest.exp: Fixes identified by the Frink static analyser:
(1) use -- in switch commands for safety,
(2) remove unreachable return commands after error commands,
(3) replace abbreviated "info proc" with "info procs",
(4) use -- in unset commands for safety where the variable name
is itself a variable.
* lib/dg.exp: Likewise.
* lib/debugger.exp: Likewise.
* lib/framework.exp: Likewise.
* lib/remote.exp: Likewise.
* lib/target.exp: Likewise.
* lib/targetdb.exp: Likewise.
* lib/telnet.exp: Likewise.
* lib/utils.exp: Likewise.
Diffstat (limited to 'lib/target.exp')
-rw-r--r-- | lib/target.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/target.exp b/lib/target.exp index 6634345..4c73c61 100644 --- a/lib/target.exp +++ b/lib/target.exp @@ -296,7 +296,7 @@ proc prune_warnings { text } { # proc target_compile {source destfile type options} { set target [target_info name] - if { [info proc ${target}_compile] != "" } { + if { [info procs ${target}_compile] != "" } { return [${target}_compile $source $destfile $type $options] } else { return [default_target_compile $source $destfile $type $options] |