diff options
author | Ben Elliston <bje@gnu.org> | 2018-12-08 00:09:42 +1100 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2018-12-08 00:09:42 +1100 |
commit | b3d43d3be8208272573563943690fff25ee50c8f (patch) | |
tree | 7245bff4e6eb16bd95c5c9ecfc65bd76241a8a7e /config/adb.exp | |
parent | 4c9fa60d34fce9f5df2a48b6e025a8a2c0ac3acd (diff) | |
download | dejagnu-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/adb.exp')
-rw-r--r-- | config/adb.exp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/adb.exp b/config/adb.exp index ee4ef2d..87d3d1a 100644 --- a/config/adb.exp +++ b/config/adb.exp @@ -23,7 +23,7 @@ proc adb_serial {} { # If the user has ADB_SERIAL set, use that, otherwise default to the # only device. set serial "[getenv ADB_SERIAL]" - if { $serial == "" } { + if { $serial eq "" } { set status [catch "exec adb devices |& wc -l" output] if { $output > 3 } { perror "Set ADB_SERIAL in your environment to specify the correct target device!" @@ -54,7 +54,7 @@ proc adb_open { hostname } { } set serial [adb_serial] - if { $serial != "" } { + if { $serial ne "" } { spawn adb [adb_serial] shell } else { spawn adb shell @@ -159,7 +159,7 @@ proc adb_exec { boardname cmd args } { # If CMD sends any output to stderr, exec will think it failed. More often # than not that will be true, but it doesn't catch the case where there is # no output but the exit code is non-zero. - if { $inp == "" } { + if { $inp eq "" } { set inp "/dev/null" } @@ -178,7 +178,7 @@ proc adb_exec { boardname cmd args } { regexp "XYZ(\[0-9\]*)ZYX" $output junk status verbose "adb_exec: status:$status text:$output" 4 - if { $status == "" } { + if { $status eq "" } { return [list -1 "Couldn't parse adb output, $output."] } regsub "XYZ(\[0-9\]*)ZYX\n?" $output "" output |