* lib/gdb.exp, gdb.base/sepdebug.exp: Replace usage of eq and ne
with [string compare].
This commit is contained in:
parent
84bc3db95d
commit
7020f05c27
3 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-10-30 Pedro Alves <pedro_alves@portugalmail.pt>
|
||||||
|
|
||||||
|
* lib/gdb.exp, gdb.base/sepdebug.exp: Replace usage of eq and ne
|
||||||
|
with [string compare].
|
||||||
|
|
||||||
2007-10-30 Pedro Alves <pedro_alves@portugalmail.pt>
|
2007-10-30 Pedro Alves <pedro_alves@portugalmail.pt>
|
||||||
|
|
||||||
* gdb.base/sepdebug.exp (binfile): Add ${EXEEXT}.
|
* gdb.base/sepdebug.exp (binfile): Add ${EXEEXT}.
|
||||||
|
|
|
@ -955,7 +955,7 @@ test_different_dir debuglink "${objdir}/${subdir}" 0
|
||||||
# NT_GNU_BUILD_ID / .note.gnu.build-id test:
|
# NT_GNU_BUILD_ID / .note.gnu.build-id test:
|
||||||
|
|
||||||
set build_id_debug_filename [build_id_debug_filename_get $binfile]
|
set build_id_debug_filename [build_id_debug_filename_get $binfile]
|
||||||
if {$build_id_debug_filename eq ""} {
|
if ![string compare $build_id_debug_filename ""] then {
|
||||||
unsupported "build-id is not supported by the compiler"
|
unsupported "build-id is not supported by the compiler"
|
||||||
|
|
||||||
# Spare debug files may confuse testsuite runs in the future.
|
# Spare debug files may confuse testsuite runs in the future.
|
||||||
|
@ -964,10 +964,10 @@ if {$build_id_debug_filename eq ""} {
|
||||||
set build_id_debugself_filename [build_id_debug_filename_get $debugfile]
|
set build_id_debugself_filename [build_id_debug_filename_get $debugfile]
|
||||||
set test "build-id support by binutils"
|
set test "build-id support by binutils"
|
||||||
set xfail 0
|
set xfail 0
|
||||||
if {$build_id_debugself_filename eq ""} {
|
if ![string compare $build_id_debugself_filename ""] then {
|
||||||
unsupported $test
|
unsupported $test
|
||||||
set xfail 1
|
set xfail 1
|
||||||
} elseif {$build_id_debugself_filename ne $build_id_debug_filename} {
|
} elseif {[string compare $build_id_debugself_filename $build_id_debug_filename] != 0} then {
|
||||||
fail $test
|
fail $test
|
||||||
} else {
|
} else {
|
||||||
pass $test
|
pass $test
|
||||||
|
|
|
@ -2505,7 +2505,7 @@ proc build_id_debug_filename_get { exec } {
|
||||||
set data [read $fi]
|
set data [read $fi]
|
||||||
close $fi
|
close $fi
|
||||||
file delete $tmp
|
file delete $tmp
|
||||||
if {$data eq ""} {
|
if ![string compare $data ""] then {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
# Convert it to hex.
|
# Convert it to hex.
|
||||||
|
|
Loading…
Reference in a new issue