aboutsummaryrefslogtreecommitdiff
path: root/lib/target.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 /lib/target.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 'lib/target.exp')
-rw-r--r--lib/target.exp22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/target.exp b/lib/target.exp
index 9268f4e..2573666 100644
--- a/lib/target.exp
+++ b/lib/target.exp
@@ -293,7 +293,7 @@ proc prune_warnings { text } {
#
proc target_compile {source destfile type options} {
set target [target_info name]
- if { [info procs ${target}_compile] != "" } {
+ if { [info procs ${target}_compile] ne "" } {
return [${target}_compile $source $destfile $type $options]
} else {
return [default_target_compile $source $destfile $type $options]
@@ -307,7 +307,7 @@ proc default_target_compile {source destfile type options} {
global LDFLAGS_FOR_TARGET
global compiler_flags
- if { $destfile == "" && $type != "preprocess" && $type != "none" } {
+ if { $destfile eq "" && $type != "preprocess" && $type != "none" } {
error "Must supply an output filename for the compile to default_target_compile"
}
@@ -459,7 +459,7 @@ proc default_target_compile {source destfile type options} {
}
if {[info exists CC_FOR_TARGET]} {
- if { $compiler == "" } {
+ if { $compiler eq "" } {
set compiler $CC_FOR_TARGET
}
}
@@ -488,9 +488,9 @@ proc default_target_compile {source destfile type options} {
}
}
- if { $compiler == "" } {
+ if { $compiler eq "" } {
set compiler [board_info $dest compiler]
- if { $compiler == "" } {
+ if { $compiler eq "" } {
return "default_target_compile: No compiler to compile with"
}
}
@@ -527,7 +527,7 @@ proc default_target_compile {source destfile type options} {
if {[isnative]} {
# This is a lose.
catch "glob -nocomplain $tool_root_dir/libstdc++/libstdc++.so* $tool_root_dir/libstdc++/libstdc++.sl" tmp
- if { ${tmp} != "" } {
+ if { ${tmp} ne "" } {
if {[regexp ".*solaris2.*" $target_triplet]} {
# Solaris 2
append add_flags " -R$tool_root_dir/libstdc++"
@@ -607,7 +607,7 @@ proc default_target_compile {source destfile type options} {
if {[isremote host]} {
foreach x $source {
set file [remote_download host $x]
- if { $file == "" } {
+ if { $file eq "" } {
warning "Unable to download $x to host."
return "Unable to download $x to host."
} else {
@@ -622,7 +622,7 @@ proc default_target_compile {source destfile type options} {
append add_flags " -o a.out"
remote_file host delete a.out
} else {
- if { $destfile != "" } {
+ if { $destfile ne "" } {
append add_flags " -o $destfile"
}
}
@@ -670,7 +670,7 @@ proc default_target_compile {source destfile type options} {
if { [lindex $status 0] != 0 } {
verbose -log "compiler exited with status [lindex $status 0]"
}
- if { [lindex $status 1] != "" } {
+ if { [lindex $status 1] ne "" } {
verbose "output is:\n[lindex $status 1]" 2
}
if { [lindex $status 0] != 0 && "${comp_output}" eq "" } {
@@ -726,7 +726,7 @@ proc default_target_assemble { source destfile flags } {
if { [lindex $status 0] != 0 } {
verbose -log "assembler exited with status [lindex $status 0]"
}
- if { [lindex $status 1] != "" } {
+ if { [lindex $status 1] ne "" } {
verbose "assembler output is:\n[lindex $status 1]" 2
}
return ${comp_output}
@@ -818,7 +818,7 @@ proc default_link { board objects destfile flags } {
if { [lindex $status 0] != 0 } {
verbose -log "linker exited with status [lindex $status 0]"
}
- if { [lindex $status 1] != "" } {
+ if { [lindex $status 1] ne "" } {
verbose "linker output is:\n[lindex $status 1]" 2
}
return ${comp_output}