(test4): Delete incorrect foo__1B test. Reformat file.
authorAlan Modra <amodra@gmail.com>
Wed, 12 Apr 2000 03:44:15 +0000 (03:44 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 12 Apr 2000 03:44:15 +0000 (03:44 +0000)
ld/testsuite/ChangeLog
ld/testsuite/ld-selective/selective.exp

index 240205f2933e1f9cbb3ed2c6331b1574e23eb500..8ba9415017e3b366f15ec8b9910845bc628ef3f0 100644 (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>
 
        * ld-scripts/phdrs.t: Discard all unexpected sections.
index 4ab5872be28b136b48e939d70b939a6985e9c7ee..0b5b77d2d1c81a5b998736ed0080b9e897c92bbf 100644 (file)
 
 # 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
+           }
        }
     }
 }