diff options
author | Ben Elliston <bje@gnu.org> | 2006-05-22 06:01:35 +0000 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2006-05-22 06:01:35 +0000 |
commit | 433e1aeb52247acb6ebed9b7ecba5077eb7a7083 (patch) | |
tree | 2123f2f4d06c24ac0e24fb9a5587363c76bfa6a5 /config/sim.exp | |
parent | b6feeb81729c431a93264a920e3d4ac93f6b96f5 (diff) | |
download | dejagnu-433e1aeb52247acb6ebed9b7ecba5077eb7a7083.zip dejagnu-433e1aeb52247acb6ebed9b7ecba5077eb7a7083.tar.gz dejagnu-433e1aeb52247acb6ebed9b7ecba5077eb7a7083.tar.bz2 |
* runtest.exp, baseboards/basic-sim.exp, baseboards/cf.exp,
baseboards/cris-sim.exp, baseboards/i960-cyclone.exp,
baseboards/mcore-moto-sim.exp, baseboards/mips64vr4100-sim.exp,
baseboards/mmixware-sim.exp, baseboards/op50n.exp,
baseboards/rom68k-idp.exp, baseboards/sparclite-sim-le.exp,
baseboards/usparc-cygmon.exp, config/base-config.exp,
config/base68k.exp, config/ddb-ether.exp, config/ddb.exp,
config/dos.exp, config/gdb-comm.exp, config/gdb_stub.exp,
config/i386-bozo.exp, config/i960.exp, config/m68k-emc.exp,
config/netware.exp, config/sid.exp, config/sim.exp,
config/tic80.exp, config/unix.exp, config/vxworks.exp,
lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp, lib/framework.exp,
lib/ftp.exp, lib/kermit.exp, lib/libgloss.exp, lib/remote.exp,
lib/rlogin.exp, lib/rsh.exp, lib/target.exp, lib/targetdb.exp,
lib/telnet.exp, lib/tip.exp, lib/utils.exp: Put braces around if
expressions throughout.
Diffstat (limited to 'config/sim.exp')
-rw-r--r-- | config/sim.exp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/sim.exp b/config/sim.exp index 886aa17..1ea3079 100644 --- a/config/sim.exp +++ b/config/sim.exp @@ -24,27 +24,27 @@ # proc sim_spawn { dest cmdline args } { - if ![board_info $dest exists sim] { + if {![board_info $dest exists sim]} { perror "no simulator defined for [board_info $dest name]" exit 1 } else { set sim [board_info $dest sim] } - if [board_info $dest exists sim,options] { + if {[board_info $dest exists sim,options]} { set simflags [board_info $dest sim,options] } else { set simflags "" } - if ![is_remote host] { + if {![is_remote host]} { if { [which $sim] == 0 } { verbose -log "Simulator $sim missing." 3 return -1 } } - if [is_remote host] { + if {[is_remote host]} { # download the program to remote. # we're assuming the program is the first word in the command. # FIXME: "prog < infile" won't work until we download infile. @@ -68,13 +68,13 @@ proc sim_load { dest prog args } { } } - if ![file exists $prog] then { + if {![file exists $prog]} then { perror "sim.exp: $prog to be downloaded does not exist." verbose -log "$prog to be downloaded does not exist." 3 return [list "untested" ""] } - if [board_info $dest exists sim_time_limit] { + if {[board_info $dest exists sim_time_limit]} { set sim_time_limit [board_info $dest sim_time_limit] } else { set sim_time_limit 240 |