This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Posixify objcopy tests
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 20 Feb 2004 13:37:47 +0000
- Subject: Posixify objcopy tests
- Organization: Codesourcery LLC
The objcopy tests has misordered arguments that a POSIXLY_CORRECT
system will barf on. This obvious patch reorders them to be ok.
ok?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
* binutils-all/objcopy.exp: Reorder arguments for POSIXLY_CORRECT
systems.p
Index: binutils/testsuite/binutils-all/objcopy.exp
===================================================================
RCS file: /home/icera/Repository/binutils/binutils/testsuite/binutils-all/objcopy.exp,v
retrieving revision 1.1.1.1
diff -c -3 -p -r1.1.1.1 objcopy.exp
*** binutils/testsuite/binutils-all/objcopy.exp 20 Jan 2004 19:05:09 -0000 1.1.1.1
--- binutils/testsuite/binutils-all/objcopy.exp 20 Feb 2004 10:13:48 -0000
*************** if ![regexp "start address (\[0-9a-fA-Fx
*** 175,181 ****
perror "objdump can not recognize bintest.o"
set origstart ""
} else {
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec --set-start 0x7654"]
if ![string match "" $got] then {
fail "objcopy --set-start"
} else {
--- 175,181 ----
perror "objdump can not recognize bintest.o"
set origstart ""
} else {
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec --set-start 0x7654 $tempfile ${copyfile}.srec"]
if ![string match "" $got] then {
fail "objcopy --set-start"
} else {
*************** if ![regexp "start address (\[0-9a-fA-Fx
*** 192,198 ****
}
}
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec --adjust-start 0x123"]
if ![string match "" $got] then {
fail "objcopy --adjust-start"
} else {
--- 192,198 ----
}
}
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec --adjust-start 0x123 $tempfile ${copyfile}.srec"]
if ![string match "" $got] then {
fail "objcopy --adjust-start"
} else {
*************** while {[regexp $headers_regexp $got all
*** 237,243 ****
if {$low == "" || $origstart == ""} then {
perror "objdump can not recognize bintest.o"
} else {
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec --adjust-vma 0x123"]
if ![string match "" $got] then {
fail "objcopy --adjust-vma"
} else {
--- 237,243 ----
if {$low == "" || $origstart == ""} then {
perror "objdump can not recognize bintest.o"
} else {
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec --adjust-vma 0x123 $tempfile ${copyfile}.srec"]
if ![string match "" $got] then {
fail "objcopy --adjust-vma"
} else {
*************** if {$low == "" || $origstart == ""} then
*** 271,277 ****
set got $rest
}
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec $arg"]
if ![string match "" $got] then {
fail "objcopy --adjust-section-vma +"
} else {
--- 271,277 ----
set got $rest
}
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $arg $tempfile ${copyfile}.srec"]
if ![string match "" $got] then {
fail "objcopy --adjust-section-vma +"
} else {
*************** if {$low == "" || $origstart == ""} then
*** 291,297 ****
}
regsub -all "\\+4" $arg "=[expr $low + 4]" argeq
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec $argeq"]
if ![string match "" $got] then {
fail "objcopy --adjust-section-vma ="
} else {
--- 291,297 ----
}
regsub -all "\\+4" $arg "=[expr $low + 4]" argeq
! set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $argeq $tempfile ${copyfile}.srec"]
if ![string match "" $got] then {
fail "objcopy --adjust-section-vma ="
} else {