testsuite_hooks.h: Remove list include.
authorBenjamin Kosnik <bkoz@redhat.com>
Mon, 28 Jul 2003 17:12:16 +0000 (17:12 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 28 Jul 2003 17:12:16 +0000 (17:12 +0000)
2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/testsuite_hooks.h: Remove list include.
(func_callback): Define as unique type, not std::list.
Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
* testsuite/libstdc++-v3.dg/dg.exp: Same.
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
* testsuite/23_containers/bitset_ctor.cc:
* testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
* testsuite/18_support/numeric_limits.cc: Same.
* testsuite/21_strings/basic_string/append/char/1.cc: Same.
* testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/compare/char/1.cc: Same.
* testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
* testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
* testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
* testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
* testsuite/21_strings/basic_string/find/char/1.cc: Same.
* testsuite/21_strings/basic_string/find/char/2.cc: Same.
* testsuite/21_strings/basic_string/find/char/3.cc: Same.
* testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
* testsuite/21_strings/basic_string/insert/char/1.cc: Same.
* testsuite/21_strings/basic_string/insert/char/2.cc: Same.
* testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
* testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
* testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
* testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
* testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
* testsuite/21_strings/basic_string/operators/char/1.cc: Same.
* testsuite/21_strings/basic_string/operators/char/2.cc: Same.
* testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/replace/char/1.cc: Same.
* testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
* testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
* testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
* testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
* testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
* testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
* testsuite/21_strings/basic_string/substr/char/1.cc: Same.
* testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
* testsuite/23_containers/bitset_ctor.cc: Same.
* testsuite/23_containers/bitset_shift.cc: Same.
* testsuite/23_containers/vector_ctor.cc: Same.
* testsuite/23_containers/vector_element_access.cc: Same.
* testsuite/24_iterators/istreambuf_iterator.cc: Same.
* testsuite/24_iterators/iterator.cc: Same.
* testsuite/24_iterators/ostreambuf_iterator.cc: Same.
* testsuite/25_algorithms/lower_bound.cc: Same.
* testsuite/26_numerics/complex_inserters_extractors.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
* testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
        Same.

From-SVN: r69892

71 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/17_intro/header_ciso646.cc
libstdc++-v3/testsuite/18_support/numeric_limits.cc
libstdc++-v3/testsuite/21_strings/basic_string/append/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/append/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/compare/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/compare/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/element_access/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/insert/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/6.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/7.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/replace/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/char/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/2.cc
libstdc++-v3/testsuite/21_strings/basic_string/rfind/wchar_t/3.cc
libstdc++-v3/testsuite/21_strings/basic_string/substr/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/substr/wchar_t/1.cc
libstdc++-v3/testsuite/23_containers/bitset_ctor.cc
libstdc++-v3/testsuite/23_containers/bitset_shift.cc
libstdc++-v3/testsuite/23_containers/vector_ctor.cc
libstdc++-v3/testsuite/23_containers/vector_element_access.cc
libstdc++-v3/testsuite/24_iterators/istreambuf_iterator.cc
libstdc++-v3/testsuite/24_iterators/iterator.cc
libstdc++-v3/testsuite/24_iterators/ostreambuf_iterator.cc
libstdc++-v3/testsuite/25_algorithms/lower_bound.cc
libstdc++-v3/testsuite/26_numerics/complex_inserters_extractors.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc
libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp
libstdc++-v3/testsuite/libstdc++-v3.dg/dg.exp
libstdc++-v3/testsuite/testsuite_hooks.cc
libstdc++-v3/testsuite/testsuite_hooks.h
libstdc++-v3/testsuite/thread/pthread7-rope.cc

index e64b45fcf3005e27e4569aa363722bb74a91e479..03af623e4ae65a600e34aa5b86d2369d67fd69aa 100644 (file)
@@ -1,3 +1,78 @@
+2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/testsuite_hooks.h: Remove list include.
+       (func_callback): Define as unique type, not std::list.
+       Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
+       * testsuite/libstdc++-v3.dg/dg.exp: Same.
+       * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
+       * testsuite/23_containers/bitset_ctor.cc: 
+       * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
+       * testsuite/18_support/numeric_limits.cc: Same.
+       * testsuite/21_strings/basic_string/append/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
+       * testsuite/21_strings/basic_string/find/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/find/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/find/char/3.cc: Same.
+       * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
+       * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc: 
+       * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc: 
+       * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
+       * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
+       * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
+       * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
+       * testsuite/23_containers/bitset_ctor.cc: Same.
+       * testsuite/23_containers/bitset_shift.cc: Same.
+       * testsuite/23_containers/vector_ctor.cc: Same.
+       * testsuite/23_containers/vector_element_access.cc: Same.
+       * testsuite/24_iterators/istreambuf_iterator.cc: Same.
+       * testsuite/24_iterators/iterator.cc: Same.
+       * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
+       * testsuite/25_algorithms/lower_bound.cc: Same.
+       * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
+       * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
+       * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: 
+        Same.
+       
 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
 
        * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
index 8513b0864efcd68b8b33373e3a10a2917d3834ec..35b1ceef32d8a9b6fe8f5082318bef4cf26cbd1e 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-05-20 bkoz
 
-// Copyright (C) 1999 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -84,10 +84,6 @@ bool test01()
   test = false;
 #endif
 
-#endif
-
-#ifdef DEBUG_ASSERT
-  assert(test);
 #endif
 
   return test;
@@ -110,10 +106,6 @@ bool test02()
   VERIFY( (arg1 && arg2) == (arg1 and arg2) );
   VERIFY( (arg1 && int1) == (arg1 and int1) );
 
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index 1643625cb3ee9ba3bb0d59be663e44ef8bf813fe..63d9412c3684e30ecf67b01256a4f57c9e753bb5 100644 (file)
@@ -2,7 +2,7 @@
 
 // 1999-08-23 bkoz
 
-// Copyright (C) 1999, 2001, 2002 Free Software Foundation
+// Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -233,11 +233,6 @@ bool test01()
   VERIFY( !obj.traps );
   VERIFY( !obj.tinyness_before );
   VERIFY( obj.round_style == std::round_toward_zero );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
@@ -281,11 +276,6 @@ bool test03()
       VERIFY( std::numeric_limits<signed long long>::digits10 == 18 );
       VERIFY( std::numeric_limits<unsigned long long>::digits10 == 19 );
     }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
@@ -302,11 +292,6 @@ bool test04()
   VERIFY( !std::numeric_limits<unsigned long>::is_iec559 );
   VERIFY( !std::numeric_limits<long long>::is_iec559 );
   VERIFY( !std::numeric_limits<unsigned long long>::is_iec559 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index a7fc70e7a04f05edb69e8ea1d94c99fb893d17b2..496a6e543092f9b9d78a94d2bcd359a4942c4d7e 100644 (file)
@@ -150,10 +150,6 @@ bool test01(void)
   str05.append(str05.begin(), str05.begin() + str05.find('r')); 
   VERIFY( str05 ==  "point bolivar, texaspoint boliva" );
   VERIFY( str05 != str01 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index d69d9b6bdfa3d4b0c6fa3412525eb694e062c138..f6002f9af5d3e32028350a2baf3831c5f3f7e120 100644 (file)
@@ -150,10 +150,6 @@ bool test01(void)
   str05.append(str05.begin(), str05.begin() + str05.find(L'r')); 
   VERIFY( str05 ==  L"point bolivar, texaspoint boliva" );
   VERIFY( str05 != str01 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 02b6b79037b0c420044863a1480218d9a025473a..096f4f3957d8474f5c55a529b2e6edd3d7100d43 100644 (file)
@@ -59,11 +59,7 @@ test_value(int result, want_value expected)
   default:
     pass = false; //should not get here
   }
-
-#ifdef DEBUG_ASSERT
-  assert(pass);
-#endif
-  
+  VERIFY(pass);
   return 0;
 }
  
index 25f8abdab971ab6366a040c2d0a4873521a5102a..5d6151900b2ed6a700e3de0e34af65461ebc72d4 100644 (file)
@@ -60,10 +60,7 @@ test_value(int result, want_value expected)
     pass = false; //should not get here
   }
 
-#ifdef DEBUG_ASSERT
-  assert(pass);
-#endif
-  
+  VERIFY(pass);
   return 0;
 }
  
index 069aa27868058885fb85a2385425636942414482..f594df728474d6d36985ceeb11ca2324be51b2fc 100644 (file)
@@ -80,10 +80,6 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index fbfa0136b67e4148f340f57a9709032662e04fe5..d2b5831ad6b7a7cd6dffd90d83b7266c100a1a3a 100644 (file)
@@ -102,9 +102,6 @@ bool test01(void)
   VERIFY( str03[0] == 'x' );
 
   // need to also test for const begin/const end
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 426d0e3963861775bffb2cbb126c2918b0ef1eef..1c7ee5bbdf7ad79713aeaa41906a5e881d633970 100644 (file)
@@ -76,10 +76,6 @@ bool test02(void)
   std::string str13 = str12;
   *p2 = 'e';
   VERIFY( str12 != str13 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 00394cf36c8c59af5661e1c622386240d05a45d6..3c39bc555cc1cc4f47a45b84448f02abc229b5d3 100644 (file)
@@ -80,10 +80,6 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 37aec1c93ce480798e6b5937e389e27054fbf25c..e2455e635e7bb921bed987ad0131d20b47c81ce9 100644 (file)
@@ -102,9 +102,7 @@ bool test01(void)
   VERIFY( str03[0] == L'x' );
 
   // need to also test for const begin/const end
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
+  VERIFY(test);
   return test;
 }
 
index b7710382ca8dc1c4a4de25ea5d76496d5187b17b..0ef50cc8fb73527114c4ede2b81146961aed8f61 100644 (file)
@@ -76,10 +76,6 @@ bool test02(void)
   std::wstring str13 = str12;
   *p2 = L'e';
   VERIFY( str12 != str13 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 561053cf6662096d9462569acd3ad0e347776a09..0f2236cbe1ac932e9d06af88d7b7d686b0f5dc5c 100644 (file)
@@ -84,10 +84,6 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.find('/');
   VERIFY( csz01 == npos );
-   
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index abc35e27f1e8c8f153edbe0e45cc7767f0eb7d44..9c3e2f079a8e4227d9d157a601ce43bb2db45625 100644 (file)
@@ -83,10 +83,6 @@ bool test02(void)
   csz01 = str01.find_first_of('z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 02647cf6310679b4db28bbcac64693c4c0427717..15d0ee2ef52bcb4cb2feceb99755433f3d39460f 100644 (file)
@@ -83,10 +83,6 @@ bool test03(void)
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of('S');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  VERIFY(test);
-#endif
   return test;
 }
 
index ecf3182d66fea53caac38ee3f67d5c73494d209b..6ed224b3b31e69dda785ddfcf6e9fbb25c0b880c 100644 (file)
@@ -84,10 +84,6 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.find(L'/');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 8ae592d4eb3addaaaea35db394e9de5ad255675c..4635dac126728c3f9af9946f59a991cfa6820d6a 100644 (file)
@@ -83,10 +83,6 @@ bool test02(void)
   csz01 = str01.find_first_of(L'z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 5d119ece9c2439a8bd5695bcb732a4acd28fd799..c874229d85304703e358e071c0fe17e85226ea4f 100644 (file)
@@ -83,10 +83,6 @@ bool test03(void)
   VERIFY( csz01 == 0 );
   csz01 = str04.find_first_not_of(L'S');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  VERIFY(test);
-#endif
   return test;
 }
 
index d284395fa9b72e2d60c4eb8b76db74cf38499c54..919c8717b0acbaac11420f37b1113fd61d98b38a 100644 (file)
@@ -180,10 +180,6 @@ int test01(void)
   csz01 = str03.size();
   str03.insert(str03.end(), str01.begin(), str01.end()); 
   VERIFY( str03 == "baker beach, san franciscorodeo beach, marin" );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 80b0cee58b7a8cc81e1db1c5fbbeec66d5f2ed6a..d39bbe2d091e718a29ec792da3ee6cf01af138a9 100644 (file)
@@ -73,10 +73,6 @@ int test02(void)
   str01.insert(0, str01.c_str());
   VERIFY( str01 == "Everything was beautiful, and nothing hurt"
          "Everything was beautiful, and nothing hurt");
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index d35e2827b587954771b9e5343ccb532be874556b..f439df907d9431670ce54362c9ec1b031e5eeb98 100644 (file)
@@ -180,10 +180,6 @@ int test01(void)
   csz01 = str03.size();
   str03.insert(str03.end(), str01.begin(), str01.end()); 
   VERIFY( str03 == L"baker beach, san franciscorodeo beach, marin" );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 04cc454e14bbd64703afcc3320119944d33e5482..8b1468b3338ea4ed3773b3920a9b04e45d06b6eb 100644 (file)
@@ -73,10 +73,6 @@ int test02(void)
   str01.insert(0, str01.c_str());
   VERIFY( str01 == L"Everything was beautiful, and nothing hurt"
          L"Everything was beautiful, and nothing hurt");
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 4b862322653ab574b39305ed1a2cc92264ef93f4..ba92251c6ad3d210615ab2c1c15611cc72e2ccdb 100644 (file)
@@ -157,10 +157,6 @@ bool test01(void)
   
   std::string hello_world;
   std::cout << hello_world;
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 55eecc19a2887f1f65258e6e15f0164b4018be41..b53ca2764d25b5b612e027ba396e0a196395ccc9 100644 (file)
@@ -54,10 +54,6 @@ void test04(int size)
   VERIFY( oss.good() );
   std::string str_tmp = oss.str();
   VERIFY( str_tmp.size() == expected_size );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 8e24f5b55b7c21f52cb32e291dc162d4b3430348..416a1df4421e1297e603860006d429058721a517 100644 (file)
@@ -75,10 +75,6 @@ void test05(int size)
     }
 
   VERIFY( count == 2 * size );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 5d42625975247c4d75db0d00e646d12f13e38760..195ef9dc2ff9fd8cf9f031696c9fba10a9a38896 100644 (file)
@@ -52,10 +52,6 @@ void test06(void)
   size_type i06 = str02.capacity();
   VERIFY( i05 == i03 );
   VERIFY( i06 <= i04 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 7e6116ec1482656428e4d81a6b2035d99b4760e2..07e3ce63cacd55defe954a6835e1e962b7ef554b 100644 (file)
@@ -44,10 +44,6 @@ void test07(void)
 
   VERIFY( i < 3 );
   VERIFY( static_cast<bool>(iss.rdstate() & std::ios_base::failbit) );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 5297958c453910580ba8d7cce9bf33b429e0d3e4..46718003d7774d6705c64d6c715d22daf6aa24a7 100644 (file)
@@ -157,10 +157,6 @@ bool test01(void)
   
   std::wstring hello_world;
   std::wcout << hello_world;
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index f47d8da43aacab95db51db1c00a7072ec9bc86f7..fd844438184ca361614583d27fb9ee1164e933df 100644 (file)
@@ -54,10 +54,6 @@ void test04(int size)
   VERIFY( oss.good() );
   std::wstring str_tmp = oss.str();
   VERIFY( str_tmp.size() == expected_size );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index e9a701e8c52708d40c8eb432c8707dca23ebe15a..6d5c69cc1a34de5a88b9cd11d4a360b71d15a243 100644 (file)
@@ -75,10 +75,6 @@ void test05(int size)
     }
 
   VERIFY( count == 2 * size );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index aedcdb263912d89bddd78bbd79a82da18c94b15a..1fa1fb07ca33455a86b287674009d3c82c07aacd 100644 (file)
@@ -52,10 +52,6 @@ void test06(void)
   size_type i06 = str02.capacity();
   VERIFY( i05 == i03 );
   VERIFY( i06 <= i04 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 4028924674b76a4a315ae06e2721da907c77897c..0a3775c0bc63537ff4b79e98025184e75614bdc4 100644 (file)
@@ -44,10 +44,6 @@ void test07(void)
 
   VERIFY( i < 3 );
   VERIFY( static_cast<bool>(iss.rdstate() & std::ios_base::failbit) );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index da8b30638ff1988e32b7fb37d48e9e0fb0d8e617..dec24cff731e18de486a0091c147686dc3be25bc 100644 (file)
@@ -41,12 +41,6 @@ int test01(void)
   // printf("2:%s\n", str1.c_str()); //str1 is gone
   const char* p2 = str1.c_str();
   return 0;
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
-  return test;
 }
 
 int main()
index c41ac68ffe27d43d07f9d9b06e2ba3a477f7ae37..bc3351d02fb468b2bab3e0b77d5e1b95d8847341 100644 (file)
@@ -285,11 +285,6 @@ template<class charT, class traits, class Allocator>
   str_4 = 'o' + str_4;
   str_4 = 'c' + str_4;
   VERIFY( str_4 == str_3 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return 0;
 }
 
index cd8f18bf66328a007d74230c7b24c09dd36b9aa2..1dec0cb68954dbe65d37fdb49a55062d24ef8445 100644 (file)
@@ -41,12 +41,6 @@ int test01(void)
   // wprintf("2:%s\n", str1.c_str()); //str1 is gone
   const wchar_t* p2 = str1.c_str();
   return 0;
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
-  return test;
 }
 
 int main()
index 11e63f70e93bc172812dcbec801b458421f366f6..d92450d23baa24f20810511104c78464218f230c 100644 (file)
@@ -285,11 +285,6 @@ template<class charT, class traits, class Allocator>
   str_4 = L'o' + str_4;
   str_4 = L'c' + str_4;
   VERIFY( str_4 == str_3 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return 0;
 }
 
index 7145d4c7840886d7352e84c20eb36accb4f7f189..d4c632b7a42c8fad56de124a0c044be659437fa7 100644 (file)
@@ -73,10 +73,6 @@ bool test01(void)
            std::find(x.rbegin(), x.rend(), 'l').base(), ar, 
            ar + sizeof(ar) / sizeof(ar[0]));
   VERIFY( x == "jeHelloo" );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index fd0967a86fe7dc722d67f58df8530634eca08939..19ee154025f9e32545e5d15d47f313c0d1ccca65 100644 (file)
@@ -73,10 +73,6 @@ bool test01(void)
            std::find(x.rbegin(), x.rend(), L'l').base(), ar, 
            ar + sizeof(ar) / sizeof(ar[0]));
   VERIFY( x == L"jeHelloo" );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 5b9a4181b91c1e9f4144d49aa3aba95d17535e99..ddc791b6c4aa45e6829db4ed85e4ed321c2e24f3 100644 (file)
@@ -83,10 +83,6 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind('/');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 30e40a986583581b1cbe29a02b6969f4f3e7eba1..d186199a1383fea309152550ee64872150a01303 100644 (file)
@@ -41,10 +41,6 @@ bool test02()
   VERIFY( pos == 1 );
   pos = z.find_last_of('X');
   VERIFY( pos == std::string::npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index aeb132b6a5893aa22717e3d66fe43c15110e783f..3517d4da169f432954c8285ec837683f86fb9ebc 100644 (file)
@@ -56,10 +56,6 @@ bool test03()
   VERIFY( pos == 0 );
   pos = z.find_last_not_of("Xa");
   VERIFY( pos == 1 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 int main()
index 9681bf4c8e46918521fa9cbc3074186b42d116aa..bfb1f914c21ec7de8f995ef2df93f542f3de076d 100644 (file)
@@ -83,10 +83,6 @@ bool test01(void)
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind(L'/');
   VERIFY( csz01 == npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 587b19b4a79320851465d7c100028e6a284eec3a..2f813b9b28b49be9597ed5814a89f65086440bbe 100644 (file)
@@ -41,10 +41,6 @@ bool test02()
   VERIFY( pos == 1 );
   pos = z.find_last_of(L'X');
   VERIFY( pos == std::wstring::npos );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 1bfd1eb757bae1b1874cad432ecf174f6eb092be..a94da0d3e859c98c241b90ab71aab4e61ea1e64d 100644 (file)
@@ -56,10 +56,6 @@ bool test03()
   VERIFY( pos == 0 );
   pos = z.find_last_not_of(L"Xa");
   VERIFY( pos == 1 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 int main()
index be2a379c581adba7c242d11c7082acc161f545f1..486892a62e0c2e363da77296cc8fb4f593ff28c1 100644 (file)
@@ -66,10 +66,6 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 843ebb6861a2170423a02b566ae7d2b7481df440..1a4e4f63936e8a1b1c55494e426de7e5e62df171 100644 (file)
@@ -66,10 +66,6 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 8dae3add5ea4d17888a343f1afe3e974beb5ff0e..10ec016dfcdbe5e7ffebcda45e42d00f843ae9cc 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-06-08 bkoz
 
-// Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -73,11 +73,6 @@ bool test01(void)
   catch(...) {
     VERIFY( false );
   }
-  
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
@@ -109,11 +104,7 @@ bool test02(void)
   }
 
   VERIFY( z1.to_ulong() == 0 );
-  VERIFY( ( z1.to_string<char,char_traits<char>,allocator<char> >().empty() ) );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
+  VERIFY( (z1.to_string<char,char_traits<char>,allocator<char> >().empty() ));
   return test;
 }
 
index 01fdd2fbc4ba6055a72292a7d80eca26915afbda..c022ca6ff4a35954746c11bc88b7638f5348e2de 100644 (file)
@@ -1,6 +1,6 @@
 // 2000-01-15  Anders Widell  <awl@hem.passagen.se>
 
-// Copyright (C) 2000 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -99,10 +99,6 @@ test01() {
   VERIFY( do_test<511>() );
   VERIFY( do_test<513>() );
   VERIFY( do_test<997>() );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
@@ -114,10 +110,6 @@ test02()
   std::bitset<66>  b;
   b <<= 400;
   VERIFY( b.count() == 0 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 854c6a680fa345099bdd29e53d9867aca3b6300b..24b013b29899f92ce59dd1bf94159511dce4dd6c 100644 (file)
@@ -39,16 +39,11 @@ struct B { };
 void test01()
 {
   // 1
-  bool test = true;
   std::vector< A<B> > vec01;
   std::vector< A<B> > vec02(5);
   typedef std::vector< A<B> >::size_type size_type;
 
   vec01 = vec02;
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 // 2
@@ -82,22 +77,13 @@ test03()
   std::vector<int> v5(M, 7);
   VERIFY(std::equal(v5.begin(), v5.end(), B));
   VERIFY(std::equal(B, B + M, v5.begin()));
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 // libstdc++/6513
 void test04()
 {
-  bool test = true;
   const char* c_strings[5] = { "1", "2", "3", "4", "5" };
   std::vector<std::string> strings(c_strings, c_strings + 5);
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 
index 5f5b5d231de9bcd5deca357fd180ec40a3fb930d..8171715dddb461509192a1355d30405160233e62 100644 (file)
@@ -1,7 +1,7 @@
 // 2000-09-06
 // bkoz 
 
-// Copyright (C) 2000 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -52,11 +52,6 @@ bool test01()
     {
       VERIFY( false );
     }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-  
   return test;
 }
 
index 72758eed3084fb90f2eb9d3bad0ace226106fe1f..2f97f8973cfafec3c145ed329bf3ea81ed647b38 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-06-28 bkoz
 
-// Copyright (C) 1999, 2001 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -133,11 +133,6 @@ bool test02(void)
       c = *++istrb_it28;
       VERIFY( c == slit01[++i] );
     }
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index 7acd1ec26e1a581adcee085798731266ad7772d0..db8b63369a502e1a7254fca31b770c19632b4844 100644 (file)
@@ -2,7 +2,7 @@
 // 24.3.1 Iterator traits
 // (basic_string and vector implementations)
 //
-// Copyright (C) 1999  Philip Martin
+// Copyright (C) 1999, 2003 Free Software Foundation, Inc.
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation; either version 2 of the License, or 
@@ -603,9 +603,6 @@ main(int argc, char **argv)
 
    failures += test6642();
 
-#ifdef DEBUG_ASSERT
-   assert (failures == 0);
-#endif
-
+   VERIFY(failures == 0);
    return 0;
 }
index 23ddee57c9f395258bb32acd3e4e62c857a23950..6fbfe6d514409203d29d084c7bc1244fb203cf7f 100644 (file)
@@ -1,6 +1,6 @@
 // 2001-04-30  Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -106,11 +106,6 @@ bool test02(void)
   tmp = ostrs00.str();
   VERIFY ( tmp != str01 );
   VERIFY ( tmp != str02 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index f6bf336597c95d5d0a3830514690f047cb0c4a1e..a3a2305016563209fb1c6ef0d4be8be32590be2e 100644 (file)
@@ -1,4 +1,5 @@
-// Copyright (C) 2000 Free Software Foundation, Inc.
+// { dg-do compile }
+// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -29,17 +30,3 @@ void bar(foo* a, foo* b, foo& x)
 {
   foo* c = std::lower_bound(a, b, x);
 }
-
-void test01()
-{
-  bool test = true;
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-}
-
-int main()
-{
-  return 0;
-}
index d304aa47b38905ac45b4aa5ccc5026d6789fd302..9f4e96b345cacdec6293e507ceb6daaacf369375 100644 (file)
@@ -1,7 +1,7 @@
 // 2000-02-10
 // Petter Urkedal <petter@matfys.lth.se>
 
-// Copyright (C) 2000 Free Software Foundation
+// Copyright (C) 2000, 2003 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -47,10 +47,6 @@ test_good(std::string str, R x, R y)
   VERIFY( flteq(z.real(), x) );
   VERIFY( flteq(z.imag(), y) );
   VERIFY( ch == '#' );
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return 0;
 }
 
@@ -58,12 +54,11 @@ template<typename R>
 int
 test_fail(std::string str)
 {
+  bool test = true;
   std::complex<R> z;
   std::istringstream iss(str);
   iss >> z;
-#ifdef DEBUG_ASSERT
-  assert(iss.fail() && !iss.bad());
-#endif
+  VERIFY( iss.fail() && !iss.bad() );
   return 0;
 }
 
index b2fdd2691e753d70af7857cf3a8ae3bf6dc98c5c..9c3b3605cb893c9c5352dd88973ff396480300bb 100644 (file)
@@ -119,11 +119,6 @@ bool test01() {
   ss_01 >> pi;
   std::printf ("%x %x\n", pi, po);
   VERIFY( po == pi );
-  
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 374fbd8e0c7efc2e16b3aff04abfda8dc7b7b66b..94136d2e1687cee648e3467c2d53e440636e1b63 100644 (file)
@@ -56,11 +56,6 @@ bool test02() {
   VERIFY( n == 20000 );
   char c = is.peek();
   VERIFY( c == 65 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index 869d828b09199efff8742fc5186eac7be57e286c..65306c4d6e349a7fdf7f2b101652848bb5a7921b 100644 (file)
@@ -55,11 +55,6 @@ bool test03()
   istr >>  l01; // _M_in_end set completely incorrectly here.
   VERIFY( l01 == 12220101 );
   VERIFY( istr.rdstate() == std::ios_base::eofbit );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index de92bcd52cb005e7c276ac00d82d0254209aecbd..206c81e506b7b9860083f4d93b4343603e443ca0 100644 (file)
@@ -70,10 +70,6 @@ void test06()
   is >> c; // EOF
   VERIFY( c == ',' );
   VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 118668ea1d98789cdf18bd91fd9aac54f42d8654..6167471ba49ce6174676caf2c83e60307d56e8a5 100644 (file)
@@ -156,10 +156,6 @@ void test07()
   VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::failbit) );
   VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::eofbit) );
   is.clear();
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index f8491612ddf8b02d60f418e2e0dde0d1c2accf31..2a2c3cc1ff7a0c866373b3ca33671d267f3aee08 100644 (file)
@@ -79,11 +79,6 @@ void test08()
   is >> h2; 
   VERIFY( h2 == 2212322 );
   VERIFY( static_cast<bool>(is.rdstate() & std::ios_base::eofbit) );
-
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
 }
 
 int main()
index 37e175e6f7cd94bf580a907e5115032c66f7f297..67d98d53de8e625822b30fa2ebecfceae0d41518 100644 (file)
@@ -58,10 +58,6 @@ bool test09()
    test = f1 == 2456;
    VERIFY( f2 == 0.00567 );
    VERIFY( c == '-' );
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
   return test;
 }
 
index bc67190533f869fe4d8af761fed6fb7f38f3ba47..de7bbf9ada883af634033c9f2ab03dc721fd57e4 100644 (file)
@@ -139,11 +139,6 @@ bool test10() {
   is_05.ignore();
   is_05 >> n;
   VERIFY( n == 16 );
-
-#ifdef DEBUG_ASSERT
-  assert(test);
-#endif
-
   return test;
 }
 
index 8a81b964fd19b1f676b48f1a6a595f31c01b3e0b..f49f60405f8dc903307b5ec3242d2be32f71e40d 100644 (file)
@@ -30,7 +30,7 @@
 
 using namespace std;
 
-#ifndef DEBUG_ASSERT
+#ifndef _GLIBCXX_ASSERT
 #  define TEST_NUMPUT_VERBOSE 1
 #endif
 
index a439c9e78abe0281f574a0dd07ff26500e239fc5..484e66b8c1539cfd46cd4ff94dc5b4b46794351c 100644 (file)
@@ -30,7 +30,7 @@
 
 using namespace std;
 
-#ifndef DEBUG_ASSERT
+#ifndef _GLIBCXX_ASSERT
 #  define TEST_NUMPUT_VERBOSE 1
 #endif
 
index c7e2a9b909d883ebb0a112b1a0086c3879780c42..8c296d6ff5e0b36fad918f427ad0edaad1d2f3e2 100644 (file)
@@ -107,7 +107,7 @@ proc libstdc++-v3-init { args } {
             return "untested"
         }
       set cxx [transform "g++"]
-      set cxxflags "-ggdb3 -DDEBUG_ASSERT"
+      set cxxflags "-ggdb3 -D_GLIBCXX_ASSERT"
       set includes "-I./"
     } else {
         # If we find a testsuite_flags file, we're testing in the build dir.
@@ -118,7 +118,7 @@ proc libstdc++-v3-init { args } {
             set includes [exec sh $flags_file --build-includes]
         } else {
             set cxx [transform "g++"]
-            set cxxflags "-ggdb3 -DDEBUG_ASSERT"
+            set cxxflags "-ggdb3 -D_GLIBCXX_ASSERT"
             set includes "-I${srcdir}"
         }
     }
index 00420992093c533c43cb197ac4ce403096d7813a..aa04dd60398a7813cc64709f5117c926f3b10a60 100644 (file)
@@ -22,7 +22,7 @@ load_lib libstdc++-v3-dg.exp
 # If a testcase doesn't have special options, use these.
 global DEFAULT_CXXFLAGS
 if ![info exists DEFAULT_CXXFLAGS] then {
-    set DEFAULT_CXXFLAGS "-DDEBUG_ASSERT"
+    set DEFAULT_CXXFLAGS "-D_GLIBCXX_ASSERT"
 }
 
 # Initialize 'dg' last or dejagnu exits with an error...
index 79d5ff34411fe3d1cdd5f6313f1b8ede77fac82d..a2ace1156e46413d1a5557291d1862b5c7d94423 100644 (file)
@@ -155,8 +155,9 @@ namespace __gnu_test
     if (res != NULL)
       {
        string preLC_ALL = res;
-       for (func_callback::const_iterator i = l.begin(); i != l.end(); ++i)
-         (*i)();
+       const func_callback::test_type* tests = l.tests();
+       for (int i = 0; i < l.size(); ++i)
+         (*tests[i])();
        string postLC_ALL= setlocale(LC_ALL, NULL);
        VERIFY( preLC_ALL == postLC_ALL );
       }
@@ -180,8 +181,9 @@ namespace __gnu_test
     const char* oldENV = getenv(env);
     if (!setenv(env, name, 1))
       {
-       for (func_callback::const_iterator i = l.begin(); i != l.end(); ++i)
-         (*i)();
+       const func_callback::test_type* tests = l.tests();
+       for (int i = 0; i < l.size(); ++i)
+         (*tests[i])();
        setenv(env, oldENV ? oldENV : "", 1);
       }
     else
index f96c0a55b854f9db5afe17c0e0315e8acc448a1f..698433582cf7770fa7e63153a5ec9e0f9b700ef1 100644 (file)
@@ -30,7 +30,7 @@
 
 // This file provides the following:
 //
-// 1)  VERIFY(), via DEBUG_ASSERT, from Brent Verner <brent@rcfile.org>.
+// 1)  VERIFY(), via _GLIBCXX_ASSERT, from Brent Verner <brent@rcfile.org>.
 //   This file is included in the various testsuite programs to provide
 //   #define(able) assert() behavior for debugging/testing. It may be
 //   a suitable location for other furry woodland creatures as well.
 #include <bits/c++config.h>
 #include <bits/functexcept.h>
 #include <cstddef>
-#ifdef DEBUG_ASSERT
+#ifdef _GLIBCXX_ASSERT
 # include <cassert>
 # define VERIFY(fn) assert(fn)
 #else
 # define VERIFY(fn) test &= (fn)
 #endif
-#include <list>
 #include <locale>
 #ifdef _GLIBCXX_HAVE_UNISTD_H
 # include <unistd.h>
@@ -100,8 +99,32 @@ namespace __gnu_test
   // Simple callback structure for variable numbers of tests (all with
   // same signature).  Assume all unit tests are of the signature
   // void test01(); 
-  typedef void (*test_func) (void);
-  typedef std::list<test_func> func_callback;
+  class func_callback
+  {
+  public:
+    typedef void (*test_type) (void);
+
+  private:
+    int                _M_size;
+    test_type  _M_tests[15];
+    
+  public:
+    func_callback(): _M_size(0) { };
+
+    int
+    size() const { return _M_size; }
+
+    const test_type*
+    tests() const { return _M_tests; }
+
+    void
+    push_back(test_type test)
+    {
+      _M_tests[_M_size] = test;
+      ++_M_size;
+    }
+  };
+
 
   // Run select unit tests after setting global locale.
   void 
index 12e71efa28505c76edadbb397b18f40db4a29146..158092d97bbbcd978b2c63b1e290809c5937093f 100644 (file)
@@ -19,8 +19,8 @@
 // USA.
 
 // { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* } }
-// { dg-options "-DDEBUG_ASSERT -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
-// { dg-options "-DDEBUG_ASSERT -pthreads" { target *-*-solaris* } }
+// { dg-options "-D_GLIBCXX_ASSERT -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
+// { dg-options "-D_GLIBCXX_ASSERT -pthreads" { target *-*-solaris* } }
 
 #include <ext/rope>
 #include <cstring>