(test4): Delete incorrect foo__1B test. Reformat file.

This commit is contained in:
Alan Modra 2000-04-12 03:44:15 +00:00
parent 6a345e871d
commit 3017ff0eca
2 changed files with 36 additions and 37 deletions

View file

@ -1,3 +1,8 @@
2000-04-12 Alan Modra <alan@linuxcare.com.au>
* ld-selective/selective.exp (test4): Delete incorrect foo__1B
test. White space changes throughout file.
2000-03-13 Nick Clifton <nickc@cygnus.com> 2000-03-13 Nick Clifton <nickc@cygnus.com>
* ld-scripts/phdrs.t: Discard all unexpected sections. * ld-scripts/phdrs.t: Discard all unexpected sections.

View file

@ -21,10 +21,10 @@
# COFF based ports do not support selective linking # COFF based ports do not support selective linking
if {[istarget "*-*-coff"]} { if {[istarget "*-*-coff"]} {
return return
} }
if {[istarget "*-*-pe"]} { if {[istarget "*-*-pe"]} {
return return
} }
set test1 "selective1" set test1 "selective1"
@ -33,7 +33,7 @@ set test3 "selective3"
set test4 "selective4" set test4 "selective4"
set test5 "selective5" set test5 "selective5"
set cflags "-w -O2 -ffunction-sections -fdata-sections" set cflags "-w -O2 -ffunction-sections -fdata-sections"
set cxxflags "-fvtable-gc -fno-exceptions -fno-rtti" set cxxflags "-fvtable-gc -fno-exceptions -fno-rtti"
set ldflags "--gc-sections -Bstatic" set ldflags "--gc-sections -Bstatic"
@ -58,20 +58,20 @@ if ![ld_simple_link $ld tmpdir/1.x "$ldflags tmpdir/1.o"] {
unresolved $test1 unresolved $test1
} else { } else {
if {[info exists nm_output(dropme1)]} { if {[info exists nm_output(dropme1)]} {
send_log "dropme1 == $nm_output(dropme1)\n" send_log "dropme1 == $nm_output(dropme1)\n"
verbose "dropme1 == $nm_output(dropme1)" verbose "dropme1 == $nm_output(dropme1)"
fail $test1
} else {
if {[info exists nm_output(dropme2)]} {
send_log "dropme2 == $nm_output(dropme2)\n"
verbose "dropme2 == $nm_output(dropme2)"
fail $test1 fail $test1
} else { } else {
if {[info exists nm_output(dropme2)]} { pass $test1
send_log "dropme2 == $nm_output(dropme2)\n"
verbose "dropme2 == $nm_output(dropme2)"
fail $test1
} else {
pass $test1
}
} }
} }
} }
}
if { ![ld_compile "$CC $cflags" $srcdir/$subdir/2.c tmpdir/2.o]} { if { ![ld_compile "$CC $cflags" $srcdir/$subdir/2.c tmpdir/2.o]} {
unresolved $test2 unresolved $test2
@ -90,9 +90,9 @@ if ![ld_simple_link $ld tmpdir/2.x "$ldflags tmpdir/2.o"] {
fail $test2 fail $test2
} else { } else {
pass $test2 pass $test2
} }
} }
} }
if { ![ld_compile "$CC $cflags" $srcdir/$subdir/2.c tmpdir/2.o]} { if { ![ld_compile "$CC $cflags" $srcdir/$subdir/2.c tmpdir/2.o]} {
unresolved $test3 unresolved $test3
@ -116,9 +116,9 @@ if ![ld_simple_link $ld tmpdir/2.x "$ldflags -u foo tmpdir/2.o"] {
fail $test3 fail $test3
} else { } else {
pass $test3 pass $test3
} }
} }
} }
} }
setup_xfail "v850*-*-elf" setup_xfail "v850*-*-elf"
@ -136,20 +136,14 @@ if ![ld_simple_link $ld tmpdir/3.x "$ldflags tmpdir/3.o"] {
if ![ld_nm $nm tmpdir/3.x] { if ![ld_nm $nm tmpdir/3.x] {
unresolved $test4 unresolved $test4
} else { } else {
if {[info exists nm_output(foo__1B)]} { if {[ info exists nm_output(bar__1A)]} {
send_log "foo__1B == $nm_output(foo__1B)\n" send_log "bar__1A== $nm_output(_bar__1A)\n"
verbose "foo__1B == $nm_output(foo__1B)" verbose "bar__1A == $nm_output(_bar__1A)"
fail $test4 fail $test4
} else { } else {
if {[ info exists nm_output(bar__1A)]} { pass $test4
send_log "bar__1A== $nm_output(_bar__1A)\n" }
verbose "bar__1A == $nm_output(_bar__1A)" }
fail $test4
} else {
pass $test4
}
}
}
} }
if { ![ld_compile "$CC $cflags $cxxflags" $srcdir/$subdir/4.cc tmpdir/4.o]} { if { ![ld_compile "$CC $cflags $cxxflags" $srcdir/$subdir/4.cc tmpdir/4.o]} {
@ -163,18 +157,18 @@ if ![ld_simple_link $ld tmpdir/4.x "$ldflags tmpdir/4.o"] {
if ![ld_nm $nm tmpdir/4.x] { if ![ld_nm $nm tmpdir/4.x] {
unresolved $test5 unresolved $test5
} else { } else {
if {[info exists nm_output(foo__1B)]} { if {[info exists nm_output(foo__1B)]} {
send_log "foo__1B == $nm_output(foo__1B)\n" send_log "foo__1B == $nm_output(foo__1B)\n"
verbose "foo__1B == $nm_output(foo__1B)" verbose "foo__1B == $nm_output(foo__1B)"
fail $test5 fail $test5
} else { } else {
if {[info exists nm_output(foo__1A)]} { if {[info exists nm_output(foo__1A)]} {
send_log "foo__1A== $nm_output(foo__1A)\n" send_log "foo__1A== $nm_output(foo__1A)\n"
verbose "foo__1A == $nm_output(foo__1A)" verbose "foo__1A == $nm_output(foo__1A)"
fail $test5 fail $test5
} else { } else {
pass $test5 pass $test5
} }
} }
} }
} }