aboutsummaryrefslogtreecommitdiff
path: root/config/sim.exp
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2018-12-08 00:09:42 +1100
committerBen Elliston <bje@gnu.org>2018-12-08 00:09:42 +1100
commitb3d43d3be8208272573563943690fff25ee50c8f (patch)
tree7245bff4e6eb16bd95c5c9ecfc65bd76241a8a7e /config/sim.exp
parent4c9fa60d34fce9f5df2a48b6e025a8a2c0ac3acd (diff)
downloaddejagnu-b3d43d3be8208272573563943690fff25ee50c8f.zip
dejagnu-b3d43d3be8208272573563943690fff25ee50c8f.tar.gz
dejagnu-b3d43d3be8208272573563943690fff25ee50c8f.tar.bz2
* runtest.exp, lib/utils.exp, lib/target.exp, lib/ssh.exp,
lib/rsh.exp, lib/rlogin.exp, lib/remote.exp, lib/libgloss.exp, lib/framework.exp, lib/dg.exp, lib/dejagnu.exp, config/vxworks.exp, config/unix.exp, config/sim.exp, config/gdb_stub.exp, config/gdb-comm.exp, config/adb.exp, baseboards/multi-sim.exp, baseboards/cris-sim.exp, baseboards/basic-sim.exp, baseboards/basic-sid.exp, baseboards/androideabi.exp, testsuite/runtest.all/load_lib.exp, testsuite/libdejagnu/tunit.exp: Replace empty string comparisons using == and != with 'eq' and 'ne'.
Diffstat (limited to 'config/sim.exp')
-rw-r--r--config/sim.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/sim.exp b/config/sim.exp
index b507742..8d9088c 100644
--- a/config/sim.exp
+++ b/config/sim.exp
@@ -62,7 +62,7 @@ proc sim_wait { dest timeout } {
proc sim_load { dest prog args } {
set inpfile ""
if { [llength $args] > 1 } {
- if { [lindex $args 1] != "" } {
+ if { [lindex $args 1] ne "" } {
set inpfile "[lindex $args 1]"
}
}
@@ -92,7 +92,7 @@ proc sim_load { dest prog args } {
# Run the program with a limited amount of real time. While
# this isn't as nice as limiting the amount of CPU time, it
# will have to do.
- if { $inpfile != "" } {
+ if { $inpfile ne "" } {
set res [remote_spawn target "${cmd} < $inpfile" "readonly"]
} else {
set res [remote_spawn target "${cmd}"]