From: paolo Date: Sun, 26 Oct 2003 10:33:30 +0000 (+0000) Subject: 2003-10-26 Paolo Carlini X-Git-Tag: upstream/4.9.2~75722 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=201546ba81756cfce8fc3f9a46bdf65795d285b5;p=platform%2Fupstream%2Flinaro-gcc.git 2003-10-26 Paolo Carlini * testsuite/22_locale/money_put/put/char/1.cc: Clean up. * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72949 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 387d202..a1ef2da 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-10-26 Paolo Carlini + + * testsuite/22_locale/money_put/put/char/1.cc: Clean up. + * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto. + 2003-10-25 Paolo Carlini * include/bits/locale_facets.tcc (num_get::_M_extract_int): @@ -289,35 +294,35 @@ * testsuite/27_io/types/3.cc: New test. 2003-10-16 Benjamin Kosnik - - * configure.host: Remove fpos_include_dir. - * configure.ac: Remove FPOS_INC_SRCDIR. - * configure: Regenerate. - * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H. - * aclocal.m4: Regenerate. - * include/Makefile.am (host_headers): Remove fpos.h. - (bits_headers): Add postypes.h. - * include/Makefile.in: Regenerate. - * config/os/gnu-linux/fposh: Remove. - * config/os/generic/fpos.h: Remove. - - * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup. - * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same. - * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same. - * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same. - * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same. - * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same. - * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same. - * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same. - * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same. - * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same. - * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same. - * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same. - * testsuite/27_io/basic_istream/seekg/char/2.cc: Same. - * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same. - * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same. - * testsuite/27_io/fpos/mbstate_t/3.cc: Same. - * testsuite/27_io/objects/char/10.cc: Same. + + * configure.host: Remove fpos_include_dir. + * configure.ac: Remove FPOS_INC_SRCDIR. + * configure: Regenerate. + * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H. + * aclocal.m4: Regenerate. + * include/Makefile.am (host_headers): Remove fpos.h. + (bits_headers): Add postypes.h. + * include/Makefile.in: Regenerate. + * config/os/gnu-linux/fposh: Remove. + * config/os/generic/fpos.h: Remove. + + * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup. + * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same. + * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same. + * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same. + * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same. + * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same. + * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same. + * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same. + * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same. + * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same. + * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same. + * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same. + * testsuite/27_io/basic_istream/seekg/char/2.cc: Same. + * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same. + * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same. + * testsuite/27_io/fpos/mbstate_t/3.cc: Same. + * testsuite/27_io/objects/char/10.cc: Same. 2003-10-16 Paolo Carlini diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc index 2692bb4..bba6145 100644 --- a/libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc +++ b/libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc @@ -36,13 +36,8 @@ void test01() // basic construction locale loc_c = locale::classic(); - locale loc_hk = __gnu_test::try_named_locale("en_HK"); - locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro"); locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); VERIFY( loc_c != loc_de ); - VERIFY( loc_hk != loc_fr ); - VERIFY( loc_hk != loc_de ); - VERIFY( loc_de != loc_fr ); // cache the moneypunct facets typedef moneypunct __money_true; @@ -54,14 +49,8 @@ void test01() // total EPA budget FY 2002 const string digits1("720000000000"); - // est. cost, national missile "defense", expressed as a loss in USD 2001 - const string digits2("-10000000000000"); - - // not valid input - const string digits3("-A"); - // input less than frac_digits - const string digits4("-1"); + const string digits2("-1"); // cache the money_put facet ostringstream oss; @@ -104,14 +93,14 @@ void test01() // test various fill strategies oss.str(empty); oss.width(20); - iterator_type os_it10 = mon_put.put(oss.rdbuf(), true, oss, '*', digits4); + iterator_type os_it10 = mon_put.put(oss.rdbuf(), true, oss, '*', digits2); string result10 = oss.str(); VERIFY( result10 == "***************-,01*"); oss.str(empty); oss.width(20); oss.setf(ios_base::internal); - iterator_type os_it11 = mon_put.put(oss.rdbuf(), true, oss, '*', digits4); + iterator_type os_it11 = mon_put.put(oss.rdbuf(), true, oss, '*', digits2); string result11 = oss.str(); VERIFY( result11 == "-,01****************"); } diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc index f8f97fa..a025d37 100644 --- a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc @@ -36,13 +36,8 @@ void test01() // basic construction locale loc_c = locale::classic(); - locale loc_hk = __gnu_test::try_named_locale("en_HK"); - locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro"); locale loc_de = __gnu_test::try_named_locale("de_DE@euro"); VERIFY( loc_c != loc_de ); - VERIFY( loc_hk != loc_fr ); - VERIFY( loc_hk != loc_de ); - VERIFY( loc_de != loc_fr ); // cache the moneypunct facets typedef moneypunct __money_true; @@ -54,14 +49,8 @@ void test01() // total EPA budget FY 2002 const wstring digits1(L"720000000000"); - // est. cost, national missile "defense", expressed as a loss in USD 2001 - const wstring digits2(L"-10000000000000"); - - // not valid input - const wstring digits3(L"-A"); - // input less than frac_digits - const wstring digits4(L"-1"); + const wstring digits2(L"-1"); // cache the money_put facet wostringstream oss; @@ -104,14 +93,14 @@ void test01() // test various fill strategies oss.str(empty); oss.width(20); - iterator_type os_it10 = mon_put.put(oss.rdbuf(), true, oss, '*', digits4); + iterator_type os_it10 = mon_put.put(oss.rdbuf(), true, oss, '*', digits2); wstring result10 = oss.str(); VERIFY( result10 == L"***************-,01*"); oss.str(empty); oss.width(20); oss.setf(ios_base::internal); - iterator_type os_it11 = mon_put.put(oss.rdbuf(), true, oss, '*', digits4); + iterator_type os_it11 = mon_put.put(oss.rdbuf(), true, oss, '*', digits2); wstring result11 = oss.str(); VERIFY( result11 == L"-,01****************"); }