This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix to eCos gcc tests - do not fail if target does not support aliases
- To: jlarmour at cygnus dot co dot uk
- Subject: Fix to eCos gcc tests - do not fail if target does not support aliases
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Thu, 4 Nov 1999 13:28:07 GMT
- Cc: gcc-patches at gcc dot gnu dot org
- Reply-to: nickc at cygnus dot co dot uk
Hi Jifl,
I have a small patch for your eCos gcc tests to prevent unexpected
failures being generated for toolchains which do not support the
alias attribute. May I apply this to the source trees ?
Cheers
Nick
1999-11-04 Nick Clifton <nickc@cygnus.com>
* gcc.dg/special/ecos.exp: Before running alias tests make
sure that the target toolchain supports them.
Index: gcc.dg/special/ecos.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/testsuite/gcc.dg/special/ecos.exp,v
retrieving revision 1.4
diff -p -r1.4 ecos.exp
*** ecos.exp 1999/09/21 17:43:01 1.4
--- ecos.exp 1999/11/04 13:27:10
*************** if { [ check_weak_available ] == 1 } {
*** 111,117 ****
###########
dg-init
! dg-runtest "$srcdir/$subdir/alias-1.c" "" ""
dg-finish
###########
--- 111,126 ----
###########
dg-init
! set lines [gcc_target_compile "$srcdir/$subdir/alias-1.c" "a.out" executable ""]
! if ![string match "" $lines] then {
! if [regexp "alias definitions not supported" $lines] {
! unsupported "alias-1.c"
! } else {
! fail "alias-1.c"
! }
! } else {
! dg-runtest "$srcdir/$subdir/alias-1.c" "" ""
! }
dg-finish
###########
*************** dg-finish
*** 119,125 ****
###########
dg-init
! dg-runtest "$srcdir/$subdir/wkali-1.c" "" ""
dg-finish
###########
--- 128,143 ----
###########
dg-init
! set lines [gcc_target_compile "$srcdir/$subdir/wkali-1.c" "a.out" executable ""]
! if ![string match "" $lines] then {
! if [regexp "alias definitions not supported" $lines] {
! unsupported "wkali-1.c"
! } else {
! fail "wkali-1.c"
! }
! } else {
! dg-runtest "$srcdir/$subdir/wkali-1.c" "" ""
! }
dg-finish
###########