This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fix to eCos gcc tests - do not fail if target does not support aliases


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
  
  ###########


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]