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]

Re: libstdc++ execute tests


Benjamin Kosnik <bkoz@redhat.com> writes:

| I don't suppose you could also figure out why XFAIL is failing before I do, 
| could you? 

Now that I can bootstrap, I can look into that :-)

Fixed with this.

Thanks,

-- Gaby

2001-04-13  Gabriel Dos Reis  <gdr@codesourcery.com>

	* testsuite/23_containers/set_operators.cc: Just try to compile.
	Mark as XFAIL.   
	* testsuite/23_containers/map_operators.cc: Same.

Index: testsuite/23_containers/map_operators.cc
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/testsuite/23_containers/map_operators.cc,v
retrieving revision 1.4
diff -p -r1.4 map_operators.cc
*** map_operators.cc	2001/03/30 08:14:15	1.4
--- map_operators.cc	2001/04/13 02:04:55
***************
*** 27,32 ****
--- 27,36 ----
  // map and set
  // libstdc++/86: map & set iterator comparisons are not type-safe
  // XXX this is XFAIL for the time being, ie this should not compile
+ 
+ // Just try to compile
+ // { dg-do compile }
+ 
  void test01()
  {
    bool test = true;
*************** void test01()
*** 39,46 ****
    std::map<unsigned, int>::iterator itr(mapByIndex.begin());
  
    // NB: notice, it's not mapByIndex!!
!   test &= itr != mapByName.end();  // ERROR - *  XFAIL *-*-*
!   test &= itr == mapByName.end();  // ERROR - *  XFAIL *-*-*
  }
  
  // http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html
--- 43,50 ----
    std::map<unsigned, int>::iterator itr(mapByIndex.begin());
  
    // NB: notice, it's not mapByIndex!!
!   test &= itr != mapByName.end();  // { dg-error ".*" "" { xfail *-*-* } }
!   test &= itr == mapByName.end();  // { dg-error ".*" "" { xfail *-*-* } }
  }
  
  // http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html
Index: testsuite/23_containers/set_operators.cc
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/testsuite/23_containers/set_operators.cc,v
retrieving revision 1.2
diff -p -r1.2 set_operators.cc
*** set_operators.cc	2001/03/30 08:14:15	1.2
--- set_operators.cc	2001/04/13 02:04:55
***************
*** 25,30 ****
--- 25,33 ----
  
  // map and set
  // libstdc++/86: map & set iterator comparisons are not type-safe
+ 
+ // { dg-do compile }
+ 
  int main(void)
  {
    bool test = true;
*************** int main(void)
*** 35,42 ****
    std::set<unsigned int>::iterator itr(setByIndex.begin());
    
    // NB: it's not setByIndex!!
!   test &= itr != setByName.end();  // ERROR - *  XFAIL *-*-*
!   test &= itr == setByName.end();  // ERROR - *  XFAIL *-*-*
  
    return 0;
  }
--- 38,45 ----
    std::set<unsigned int>::iterator itr(setByIndex.begin());
    
    // NB: it's not setByIndex!!
!   test &= itr != setByName.end();  // { dg-error ".*" "" { xfail *-*-* } }
!   test &= itr == setByName.end();  // { dg-error ".*" "" { xfail *-*-* } }
  
    return 0;
  }


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