2.cc: Fix typo.

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.

From-SVN: r91368
This commit is contained in:
Paolo Carlini 2004-11-27 09:34:06 +00:00 committed by Paolo Carlini
parent de2fc4db61
commit fcfbdb74da
7 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,13 @@
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]

View File

@ -38,7 +38,7 @@ void test01()
// 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;

View File

@ -38,7 +38,7 @@ void test01()
// 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;

View File

@ -1,4 +1,4 @@
// 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
@ -177,7 +177,7 @@ void test01()
Buf fb;
fb.pubimbue(loc);
fb.open("tmp_11603", ios_base::in);
assert(fb.pub_showmanyc() == 1);
VERIFY( fb.pub_showmanyc() == 1 );
try
{

View File

@ -1,4 +1,4 @@
// 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
@ -39,7 +39,7 @@ int main()
{
stream.setstate(ios_base::failbit);
stream.exceptions(ios_base::failbit);
assert(false);
VERIFY( false );
}
catch (...)
{
@ -50,7 +50,7 @@ int main()
{
// Calls clear(rdstate()), which throws in this case.
stream.setstate(ios_base::goodbit);
assert(false);
VERIFY( false );
}
catch (...)
{ }

View File

@ -83,7 +83,7 @@ L"aaaaaaaaaaaaaa\n";
// 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;

View File

@ -81,7 +81,7 @@ void test01()
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",