* ld-checks/asm.s: Use a symbol name for .lcomm.
authorIan Lance Taylor <ian@airs.com>
Sat, 12 Jun 1999 22:40:18 +0000 (22:40 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 12 Jun 1999 22:40:18 +0000 (22:40 +0000)
* ld-checks/checks.exp: Use different names for the two tests.
Don't add extra text when invoking fail.

ld/testsuite/ChangeLog
ld/testsuite/ld-checks/asm.s
ld/testsuite/ld-checks/checks.exp

index 763d63b68d030df59d1694c94ea3b24de3e37039..3581965be58471704d2c9048aae66301d9ef3c99 100644 (file)
@@ -1,3 +1,9 @@
+1999-06-13  Ian Lance Taylor  <ian@zembu.com>
+
+       * ld-checks/asm.s: Use a symbol name for .lcomm.
+       * ld-checks/checks.exp: Use different names for the two tests.
+       Don't add extra text when invoking fail.
+
 1999-06-12  Ian Lance Taylor  <ian@zembu.com>
 
        * ld-scripts/phdrs.exp: Change target check from "*-*-linuxaout*"
index e4e0c3324704acafd1dc0b0e074e184b81d3356a..ad5e177f63be0b544b458bd89bcf462f3a7800e1 100644 (file)
@@ -8,7 +8,4 @@ foo:
 bar:
        .long 0x87654321
 
-       .lcomm 0x12
-
-
-       
\ No newline at end of file
+       .lcomm dummy, 0x12
index af3ef7d70a47c83041f77d2754cf609ff91a62e1..16fafe340953879a7ff1edcb6ffd65cff515344e 100644 (file)
@@ -24,7 +24,7 @@ proc section_check {} {
     global srcdir
     global subdir
     
-    set test "check sections"
+    set test "check sections 1"
     
     set ldflags "--check-sections"
 
@@ -34,11 +34,13 @@ proc section_check {} {
     }
 
     if ![ld_simple_link $ld tmpdir/asm.x "$ldflags tmpdir/asm.o"] {
-       fail "$test : using default linker script"
+       fail $test
     } else {
        pass $test
     }
 
+    set test "check sections 2"
+
     # Change the linker flags so that our "buggy" linker
     # script is used.
     set ldflags "--check-sections -T $srcdir/$subdir/script -e foo"
@@ -51,7 +53,7 @@ proc section_check {} {
 
     # Make sure that we got some output from the linker
     if [string match "" $exec_output] then {
-       fail "$test - error message expected but not found"
+       fail $test
     } 
 
     # Now remove our expected error message
@@ -62,8 +64,7 @@ proc section_check {} {
        pass $test
     } else {
        verbose -log "Unexpected linker message(s): $exec_output"
-       
-       fail "$test - using erroneous linker script"
+       fail $test
     }
 }
 
This page took 0.025455 seconds and 4 git commands to generate.