+2004-11-27 Paolo Carlini <pcarlini@suse.de>
+
+ * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: Fix typo.
+ * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: Likewise.
+
+ * testsuite/22_locale/time_put/put/char/17038.cc: Use VERIFY.
+ * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
+ * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: Likewise.
+ * testsuite/27_io/basic_ios/exceptions/char/2.cc: Likewise.
+
2004-11-26 Paolo Carlini <pcarlini@suse.de>
DR 243. get and getline when sentry reports failure [WP]
// basic construction
locale loc_c = locale::classic();
locale loc_in = __gnu_test::try_named_locale("ta_IN");
- assert( loc_in != loc_c );
+ VERIFY( loc_in != loc_c );
// create an ostream-derived object, cache the time_put facet
ostringstream oss;
// basic construction
locale loc_c = locale::classic();
locale loc_in = __gnu_test::try_named_locale("ta_IN");
- assert( loc_in != loc_c );
+ VERIFY( loc_in != loc_c );
// create an ostream-derived object, cache the time_put facet
wostringstream oss;
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 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
Buf fb;
fb.pubimbue(loc);
fb.open("tmp_11603", ios_base::in);
- assert(fb.pub_showmanyc() == 1);
+ VERIFY( fb.pub_showmanyc() == 1 );
try
{
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 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
{
stream.setstate(ios_base::failbit);
stream.exceptions(ios_base::failbit);
- assert(false);
+ VERIFY( false );
}
catch (...)
{
{
// Calls clear(rdstate()), which throws in this case.
stream.setstate(ios_base::goodbit);
- assert(false);
+ VERIFY( false );
}
catch (...)
{ }
// delimiter was read.
//
// -> wcslen(__s) < n - 1
- // -> delimiter was seen -> gcount() > strlen(__s)
+ // -> delimiter was seen -> gcount() > wcslen(__s)
VERIFY( ifs.gcount() == static_cast<std::streamsize>(std::wcslen(tmp)
+ 1) );
continue;
VERIFY( is.gcount() == 10 );
is.clear();
- traits_type::assign(buffer, sizeof(buffer) / sizeof(wchar_t), 'X');
+ traits_type::assign(buffer, sizeof(buffer) / sizeof(wchar_t), L'X');
is.getline(buffer, sizeof(buffer) / sizeof(wchar_t));
VERIFY( is.rdstate() == ios_base::failbit );
VERIFY( !traits_type::compare(buffer, L"abcdefghi\0",