+2004-11-18 Paolo Carlini <pcarlini@suse.de>
+
+ * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
+ * testsuite/ext/array_allocator/1.cc: Likewise.
+ * testsuite/ext/array_allocator/2.cc: Likewise.
+ * testsuite/ext/array_allocator/3.cc: Likewise.
+ * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
+
2004-11-18 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2004 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
#include <algorithm>
#include <numeric>
-#include <cassert>
+#include <testsuite_hooks.h>
int A[] = {1, 4, 9, 16, 25, 36, 49, 64, 81, 100};
int B[] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19};
void
test01()
{
- int D[N];
+ bool test __attribute__((unused)) = true;
- std::adjacent_difference(A, A + N, D);
- assert(std::equal(D, D + N, B));
+ int D[N];
- std::partial_sum(D, D + N, D);
- assert(std::equal(D, D + N, A));
+ std::adjacent_difference(A, A + N, D);
+ VERIFY( std::equal(D, D + N, B) );
+
+ std::partial_sum(D, D + N, D);
+ VERIFY( std::equal(D, D + N, A) );
}
int
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
-#include <cassert>
#include <string>
#include <ext/array_allocator.h>
+#include <testsuite_hooks.h>
typedef char char_type;
typedef std::char_traits<char_type> traits_type;
void test01()
{
+ bool test __attribute__((unused)) = true;
+
using std::basic_string;
typedef __gnu_cxx::array_allocator<char_type, array_type> allocator_type;
typedef basic_string<char_type, traits_type, allocator_type> string_type;
}
catch(std::bad_alloc& obj)
{
- assert(true);
+ VERIFY( true );
}
catch(...)
{
- assert(false);
+ VERIFY( false );
}
}
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
-#include <cassert>
#include <string>
#include <iostream>
#include <ext/array_allocator.h>
+#include <testsuite_hooks.h>
typedef char char_type;
typedef std::char_traits<char_type> traits_type;
void test01()
{
+ bool test __attribute__((unused)) = true;
+
using std::basic_string;
typedef __gnu_cxx::array_allocator<char_type, array_type> allocator_type;
typedef basic_string<char_type, traits_type, allocator_type> string_type;
}
catch(std::bad_alloc& obj)
{
- assert(false);
+ VERIFY( false );
}
catch(...)
{
- assert(false);
+ VERIFY( false );
}
s.append(1, 'c');
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
-#include <cassert>
#include <string>
#include <ext/array_allocator.h>
+#include <testsuite_hooks.h>
typedef char char_type;
typedef std::char_traits<char_type> traits_type;
void test01()
{
+ bool test __attribute__((unused)) = true;
+
using std::basic_string;
typedef __gnu_cxx::array_allocator<char_type, array_type> allocator_type;
typedef basic_string<char_type, traits_type, allocator_type> string_type;
}
catch(std::bad_alloc& obj)
{
- assert(true);
+ VERIFY( true );
}
catch(...)
{
- assert(false);
+ VERIFY( false );
}
}
#include <locale>
#include <cstring>
-#include <cassert>
+#include <testsuite_hooks.h>
#ifdef _GLIBCXX_USE___ENC_TRAITS
#include <ext/enc_filebuf.h>
#endif
int main()
{
#ifdef _GLIBCXX_USE___ENC_TRAITS
- const char* str = "Hello, world!\n";
+ bool test __attribute__((unused)) = true;
+ const char* str = "Hello, world!\n";
std::locale loc(std::locale::classic(),
new std::codecvt<char, char, std::__enc_traits>());
std::__enc_traits st("ISO-8859-1", "ISO-8859-1");
int s = fb.pubsync();
fb.close();
- assert(n == std::strlen(str));
- assert(s == 0);
+ VERIFY( n == std::strlen(str) );
+ VERIFY( s == 0 );
#endif
return 0;