aboutsummaryrefslogtreecommitdiff
path: root/baseboards
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 /baseboards
parent4c9fa60d34fce9f5df2a48b6e025a8a2c0ac3acd (diff)
* 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 'baseboards')
-rw-r--r--baseboards/androideabi.exp4
-rw-r--r--baseboards/basic-sid.exp8
-rw-r--r--baseboards/basic-sim.exp2
-rw-r--r--baseboards/cris-sim.exp2
-rw-r--r--baseboards/multi-sim.exp2
5 files changed, 9 insertions, 9 deletions
diff --git a/baseboards/androideabi.exp b/baseboards/androideabi.exp
index dfc25db..8a29ab6 100644
--- a/baseboards/androideabi.exp
+++ b/baseboards/androideabi.exp
@@ -36,7 +36,7 @@ proc adb_load { dest prog args } {
# Default directory uses tmpfs, so it is the best place to run
# tests to avoid excessive wear of flash.
global android_tmp_dir
- if { $android_tmp_dir != "" } {
+ if { $android_tmp_dir ne "" } {
verbose -log "android temporary directory is set to $android_tmp_dir" 3
} else {
set android_tmp_dir "/mnt/sdcard/.android_secure"
@@ -66,7 +66,7 @@ proc adb_load { dest prog args } {
set localfile "./[file tail $prog].[pid]"
set remotefile "$android_tmp_dir/[file tail $prog].[pid]"
set remotefile [remote_download $dest $prog $remotefile]
- if { $remotefile == "" } {
+ if { $remotefile eq "" } {
verbose -log "Download of $prog to [board_info $dest name] failed." 3
return "unresolved"
}
diff --git a/baseboards/basic-sid.exp b/baseboards/basic-sid.exp
index 8bc87d1..d03bfed 100644
--- a/baseboards/basic-sid.exp
+++ b/baseboards/basic-sid.exp
@@ -27,9 +27,9 @@ proc find_sid { target_alias } {
global tool_root_dir
set try [lookfor_file ${tool_root_dir} sid/bsp/${target_alias}-sid]
- if { $try != "" } {
+ if { $try ne "" } {
set sid_build [lookfor_file ${tool_root_dir} sid/main/dynamic/sid]
- if { $sid_build != "" } { set env(SID) $sid_build }
+ if { $sid_build ne "" } { set env(SID) $sid_build }
return $try
}
@@ -45,7 +45,7 @@ proc find_sid_conf { config } {
global srcdir
set try [lookfor_file ${srcdir} sid/bsp/pregen/${config}.conf]
- if { $try == "" } then { return ${config}.conf } else { return $try }
+ if { $try eq "" } then { return ${config}.conf } else { return $try }
}
# find_rawsid -- find a usable SID simulator.
@@ -58,7 +58,7 @@ proc find_rawsid { } {
global srcdir
set try [lookfor_file ${tool_root_dir} sid/main/dynamic/sid]
- if { $try == "" } {
+ if { $try eq "" } {
set try "sid"
} else {
# testing build tree
diff --git a/baseboards/basic-sim.exp b/baseboards/basic-sim.exp
index f506fe7..96d5164 100644
--- a/baseboards/basic-sim.exp
+++ b/baseboards/basic-sim.exp
@@ -40,7 +40,7 @@ proc find_sim { target_alias sim_dir sim_name } {
# We have to search because tool_root_dir may actually point to that blasted
# "target" subdirectory.
set try [lookfor_file ${tool_root_dir} sim/${sim_dir}/${sim_name}]
- if { $try != "" } {
+ if { $try ne "" } {
return $try
}
return ${target_alias}-${sim_name}
diff --git a/baseboards/cris-sim.exp b/baseboards/cris-sim.exp
index ff4a928..431a0ba 100644
--- a/baseboards/cris-sim.exp
+++ b/baseboards/cris-sim.exp
@@ -69,7 +69,7 @@ foreach x $board_variant_list {
}
}
-if { ![board_info $board exists sim,options] && $cris_simopt != "" } {
+if { ![board_info $board exists sim,options] && $cris_simopt ne "" } {
set_board_info sim,options $cris_simopt
}
diff --git a/baseboards/multi-sim.exp b/baseboards/multi-sim.exp
index 97801f7..6e854f5 100644
--- a/baseboards/multi-sim.exp
+++ b/baseboards/multi-sim.exp
@@ -58,7 +58,7 @@ proc dynamic_linker_flag { args } {
set mflags "[board_info $board multilib_flags]"
foreach i [get_library_dirlist] {
set dynlinker [glob -nocomplain -directory $i ld-*.so]
- if { $dynlinker != "" } break
+ if { $dynlinker ne "" } break
}
verbose "dynamic_linker_flag: -Wl,--dynamic-linker=$dynlinker"
return "-Wl,--dynamic-linker=$dynlinker"