aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-12 03:44:15 +0000
committerAlan Modra <amodra@gmail.com>2000-04-12 03:44:15 +0000
commit3017ff0ecac12fb625e1053794aabfbea9857dec (patch)
tree2b7af0f5886c638240adb790eb16b94b8818a4c7 /ld/testsuite
parent6a345e871d07199f9c4bb9009e20e9dabbf5d4f2 (diff)
downloadgdb-3017ff0ecac12fb625e1053794aabfbea9857dec.zip
gdb-3017ff0ecac12fb625e1053794aabfbea9857dec.tar.gz
gdb-3017ff0ecac12fb625e1053794aabfbea9857dec.tar.bz2
(test4): Delete incorrect foo__1B test. Reformat file.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-selective/selective.exp68
2 files changed, 36 insertions, 37 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 240205f..8ba9415 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -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>
* ld-scripts/phdrs.t: Discard all unexpected sections.
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp
index 4ab5872..0b5b77d 100644
--- a/ld/testsuite/ld-selective/selective.exp
+++ b/ld/testsuite/ld-selective/selective.exp
@@ -21,10 +21,10 @@
# COFF based ports do not support selective linking
if {[istarget "*-*-coff"]} {
- return
+ return
}
if {[istarget "*-*-pe"]} {
- return
+ return
}
set test1 "selective1"
@@ -33,7 +33,7 @@ set test3 "selective3"
set test4 "selective4"
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 ldflags "--gc-sections -Bstatic"
@@ -58,20 +58,20 @@ if ![ld_simple_link $ld tmpdir/1.x "$ldflags tmpdir/1.o"] {
unresolved $test1
} else {
if {[info exists nm_output(dropme1)]} {
- send_log "dropme1 == $nm_output(dropme1)\n"
- verbose "dropme1 == $nm_output(dropme1)"
+ send_log "dropme1 == $nm_output(dropme1)\n"
+ 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
} else {
- if {[info exists nm_output(dropme2)]} {
- send_log "dropme2 == $nm_output(dropme2)\n"
- verbose "dropme2 == $nm_output(dropme2)"
- fail $test1
- } else {
- pass $test1
- }
+ pass $test1
}
}
}
+}
if { ![ld_compile "$CC $cflags" $srcdir/$subdir/2.c tmpdir/2.o]} {
unresolved $test2
@@ -90,9 +90,9 @@ if ![ld_simple_link $ld tmpdir/2.x "$ldflags tmpdir/2.o"] {
fail $test2
} else {
pass $test2
- }
- }
- }
+ }
+ }
+}
if { ![ld_compile "$CC $cflags" $srcdir/$subdir/2.c tmpdir/2.o]} {
unresolved $test3
@@ -116,9 +116,9 @@ if ![ld_simple_link $ld tmpdir/2.x "$ldflags -u foo tmpdir/2.o"] {
fail $test3
} else {
pass $test3
- }
- }
- }
+ }
+ }
+ }
}
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] {
unresolved $test4
} else {
- if {[info exists nm_output(foo__1B)]} {
- send_log "foo__1B == $nm_output(foo__1B)\n"
- verbose "foo__1B == $nm_output(foo__1B)"
- fail $test4
- } else {
- if {[ info exists nm_output(bar__1A)]} {
- send_log "bar__1A== $nm_output(_bar__1A)\n"
- verbose "bar__1A == $nm_output(_bar__1A)"
- fail $test4
- } else {
- pass $test4
- }
- }
- }
+ if {[ info exists nm_output(bar__1A)]} {
+ 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]} {
@@ -163,18 +157,18 @@ if ![ld_simple_link $ld tmpdir/4.x "$ldflags tmpdir/4.o"] {
if ![ld_nm $nm tmpdir/4.x] {
unresolved $test5
} else {
- if {[info exists nm_output(foo__1B)]} {
+ if {[info exists nm_output(foo__1B)]} {
send_log "foo__1B == $nm_output(foo__1B)\n"
verbose "foo__1B == $nm_output(foo__1B)"
fail $test5
} else {
- if {[info exists nm_output(foo__1A)]} {
+ if {[info exists nm_output(foo__1A)]} {
send_log "foo__1A== $nm_output(foo__1A)\n"
verbose "foo__1A == $nm_output(foo__1A)"
fail $test5
- } else {
- pass $test5
- }
+ } else {
+ pass $test5
+ }
}
}
}