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]

PATCH: g++.dg/special/ecos.exp writes in $srcdir


Obvious change, but tested on branch anyways (which was wise since the
"really obvious" change of $srcdir/$subdir/a.out ->
$objdir/$subdir/a.out failed since $objdir/$subdir doesn't exist
unless $srcdir == $objdir).  Not applied to either branch, but I can
do it after approval.

2001-03-28  Loren J. Rittle  <ljrittle@acm.org>

	* g++.dg/special/ecos.exp (conpr-1.C): Do not write in $srcdir.

Index: gcc/testsuite/g++.dg/special/ecos.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/special/ecos.exp,v
retrieving revision 1.4
diff -c -r1.4 ecos.exp
*** ecos.exp	2001/01/15 03:56:07	1.4
--- ecos.exp	2001/03/28 07:52:40
***************
*** 29,43 ****
  ###########
  
  dg-init
! set lines [g++_target_compile "$srcdir/$subdir/conpr-1.C" "$srcdir/$subdir/a.out" executable ""]
  if [string match "*init_priority*" $lines] then {
      xfail "conpr-1.C"
!     file delete $srcdir/$subdir/a.out
  } elseif ![string match "" $lines] then {
      fail "conpr-1.C"
  } else {
      dg-runtest "$srcdir/$subdir/conpr-1.C" "" "" 
!     file delete $srcdir/$subdir/a.out
  }
  dg-finish
  
--- 29,43 ----
  ###########
  
  dg-init
! set lines [g++_target_compile "$srcdir/$subdir/conpr-1.C" "$objdir/a.out" executable ""]
  if [string match "*init_priority*" $lines] then {
      xfail "conpr-1.C"
!     file delete $objdir/a.out
  } elseif ![string match "" $lines] then {
      fail "conpr-1.C"
  } else {
      dg-runtest "$srcdir/$subdir/conpr-1.C" "" "" 
!     file delete $objdir/a.out
  }
  dg-finish
  


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