diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-12 22:40:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-12 22:40:18 +0000 |
commit | 197a7bfdcac1f79ca4a15612aa98ff7db58801f4 (patch) | |
tree | 7916a9a1f7addb972ae9202a9dc576abdee684ba | |
parent | 7565ed77a1413dd7893b1ce127a576b6a2c99ced (diff) | |
download | gdb-197a7bfdcac1f79ca4a15612aa98ff7db58801f4.zip gdb-197a7bfdcac1f79ca4a15612aa98ff7db58801f4.tar.gz gdb-197a7bfdcac1f79ca4a15612aa98ff7db58801f4.tar.bz2 |
* 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.
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-checks/asm.s | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-checks/checks.exp | 11 |
3 files changed, 13 insertions, 9 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 763d63b..3581965 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -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*" diff --git a/ld/testsuite/ld-checks/asm.s b/ld/testsuite/ld-checks/asm.s index e4e0c33..ad5e177 100644 --- a/ld/testsuite/ld-checks/asm.s +++ b/ld/testsuite/ld-checks/asm.s @@ -8,7 +8,4 @@ foo: bar: .long 0x87654321 - .lcomm 0x12 - - -
\ No newline at end of file + .lcomm dummy, 0x12 diff --git a/ld/testsuite/ld-checks/checks.exp b/ld/testsuite/ld-checks/checks.exp index af3ef7d..16fafe3 100644 --- a/ld/testsuite/ld-checks/checks.exp +++ b/ld/testsuite/ld-checks/checks.exp @@ -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 } } |