From: Nick Clifton Date: Fri, 29 Jan 1999 10:49:19 +0000 (+0000) Subject: Support v850 expected failures. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b977c7dbf9ce54760af34b800d13ce9009f6246;p=binutils-gdb.git Support v850 expected failures. --- diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp index 0214f78ea45..c324239c9c4 100644 --- a/binutils/testsuite/binutils-all/readelf.exp +++ b/binutils/testsuite/binutils-all/readelf.exp @@ -125,7 +125,7 @@ proc regexp_diff { file_1 file_2 } { # Readelf's output is captured and then compared against the contents # of the regexp_file. -proc readelf_test { options binary_file regexp_file } { +proc readelf_test { options binary_file regexp_file xfails } { global READELF global READELFFLAGS @@ -133,6 +133,10 @@ proc readelf_test { options binary_file regexp_file } { send_log "exec $READELF $READELFFLAGS $options $binary_file > readelf.out" catch "exec $READELF $READELFFLAGS $options $binary_file > readelf.out" got + if { [llength $xfails] != 0 } then { + setup_xfail $xfails + } + if ![string match "" $got] then { send_log $got fail "readelf $options" @@ -184,7 +188,10 @@ if ![is_remote host] { } # Run the tests -readelf_test -h $tempfile $srcdir/$subdir/readelf.h -readelf_test -S $tempfile $srcdir/$subdir/readelf.s -readelf_test -s $tempfile $srcdir/$subdir/readelf.ss -readelf_test -r $tempfile $srcdir/$subdir/readelf.r +readelf_test -h $tempfile $srcdir/$subdir/readelf.h {} +# The v850 fails the next two tests because it creates two special +# sections of its own: .call_table_data and .call_table_text +# The regexp scripts are not expecting these sections... +readelf_test -S $tempfile $srcdir/$subdir/readelf.s {v850*-*} +readelf_test -s $tempfile $srcdir/$subdir/readelf.ss {v850*-*} +readelf_test -r $tempfile $srcdir/$subdir/readelf.r {} diff --git a/binutils/testsuite/binutils-all/readelf.r b/binutils/testsuite/binutils-all/readelf.r index 7f2074ea856..4edef668cf9 100644 --- a/binutils/testsuite/binutils-all/readelf.r +++ b/binutils/testsuite/binutils-all/readelf.r @@ -1,4 +1,4 @@ -Relocation section '.rel..text' at offset 0x2b8 contains 1 entries: +Relocation section '.rel..text' at offset 0x.* contains 1 entries: Offset Info Type Symbol's Value Symbol's Name Addend 00000004 00.* R_.* 00000000 external_symbol \+ 0 diff --git a/binutils/testsuite/binutils-all/readelf.ss b/binutils/testsuite/binutils-all/readelf.ss index 6ff4d8ab8cc..01254e8d9e3 100644 --- a/binutils/testsuite/binutils-all/readelf.ss +++ b/binutils/testsuite/binutils-all/readelf.ss @@ -1,5 +1,5 @@ -Symbol table '.symtab' contains 10 entries: +Symbol table '.symtab' contains .* entries: Num: Value Size Type Bind Ot Ndx Name 0: 0 0 NOTYPE LOCAL 0 UND 1: 0 0 SECTION LOCAL 0 1 @@ -7,7 +7,7 @@ Symbol table '.symtab' contains 10 entries: 3: 0 0 SECTION LOCAL 0 4 4: 0 0 NOTYPE LOCAL 0 1 static_text_symbol 5: 0 0 NOTYPE LOCAL 0 3 static_data_symbol - 6: 0 0 NOTYPE GLOBAL 0 1 text_symbol - 7: 0 0 NOTYPE GLOBAL 0 UND external_symbol - 8: 0 0 NOTYPE GLOBAL 0 3 data_symbol - 9: 4 4 OBJECT GLOBAL 0 COM common_symbol +.* .: 0 0 NOTYPE GLOBAL 0 1 text_symbol + .: 0 0 NOTYPE GLOBAL 0 UND external_symbol + .: 0 0 NOTYPE GLOBAL 0 3 data_symbol + .: 4 4 OBJECT GLOBAL 0 COM common_symbol