codecvt_members_char_char.cc: Do not allow NULL argument to be passed to setenv().

* testsuite/22_locale/codecvt_members_char_char.cc: Do not
	allow NULL argument to be passed to setenv().
	* testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
	* testsuite/22_locale/collate_members_char.cc: Likewise.
	* testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
	* testsuite/22_locale/ctype_members_char.cc: Likewise.
	* testsuite/22_locale/ctype_members_wchar_t.cc: Likewise.
	* testsuite/22_locale/messages_members_char.cc: Likewise.
	* testsuite/22_locale/money_get_members_char.cc: Likewise.
	* testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
	* testsuite/22_locale/money_put_members_char.cc: Likewise.
	* testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
	* testsuite/22_locale/moneypunct_members_char.cc: Likewise.
	* testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
	* testsuite/22_locale/num_get_members_char.cc: Likewise.
	* testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
	* testsuite/22_locale/num_put_members_char.cc: Likewise.
	* testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
	* testsuite/22_locale/numpunct_members_char.cc: Likewise.
	* testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
	* testsuite/22_locale/time_get_members_char.cc: Likewise.
	* testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
	* testsuite/22_locale/time_put_members_char.cc: Likewise.
	* testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.

From-SVN: r49384
This commit is contained in:
Loren J. Rittle 2002-02-01 00:24:12 +00:00 committed by Loren J. Rittle
parent bebc7e8b3d
commit 4a78d8641c
24 changed files with 50 additions and 23 deletions

View File

@ -1,3 +1,30 @@
2002-01-31 Loren Rittle <ljrittle@acm.org>
* testsuite/22_locale/codecvt_members_char_char.cc: Do not
allow NULL argument to be passed to setenv().
* testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
* testsuite/22_locale/collate_members_char.cc: Likewise.
* testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
* testsuite/22_locale/ctype_members_char.cc: Likewise.
* testsuite/22_locale/ctype_members_wchar_t.cc: Likewise.
* testsuite/22_locale/messages_members_char.cc: Likewise.
* testsuite/22_locale/money_get_members_char.cc: Likewise.
* testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/money_put_members_char.cc: Likewise.
* testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
* testsuite/22_locale/moneypunct_members_char.cc: Likewise.
* testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
* testsuite/22_locale/num_get_members_char.cc: Likewise.
* testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/num_put_members_char.cc: Likewise.
* testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
* testsuite/22_locale/numpunct_members_char.cc: Likewise.
* testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
* testsuite/22_locale/time_get_members_char.cc: Likewise.
* testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/time_put_members_char.cc: Likewise.
* testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
2002-01-30 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/c_locale_gnu.cc: Same errno fixes as generic.

View File

@ -92,7 +92,7 @@ void test02()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -124,7 +124,7 @@ void test02()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -142,7 +142,7 @@ void test02()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -142,7 +142,7 @@ void test02()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -257,7 +257,7 @@ void test03()
{
test01();
test02();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -110,7 +110,7 @@ void test03()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -94,7 +94,7 @@ void test02()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -304,7 +304,7 @@ void test04()
test01();
test02();
test03();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -306,7 +306,7 @@ void test04()
test01();
test02();
test03();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -298,7 +298,7 @@ void test04()
test01();
test02();
test03();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -298,7 +298,7 @@ void test04()
test01();
test02();
test03();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -118,7 +118,7 @@ void test02()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -119,7 +119,7 @@ void test02()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -327,7 +327,7 @@ void test03()
{
test01();
test02();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -329,7 +329,7 @@ void test03()
{
test01();
test02();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -305,7 +305,7 @@ void test03()
{
test01();
test02();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -305,7 +305,7 @@ void test03()
{
test01();
test02();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -96,7 +96,7 @@ void test02()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -94,7 +94,7 @@ void test02()
if (!setenv("LANG", "de_DE", 1))
{
test01();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -694,7 +694,7 @@ void test07()
test04();
test05();
test06();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -694,7 +694,7 @@ void test07()
test04();
test05();
test06();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -245,7 +245,7 @@ void test03()
{
test01();
test02();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}

View File

@ -247,7 +247,7 @@ void test03()
{
test01();
test02();
setenv("LANG", oldLANG, 1);
setenv("LANG", oldLANG ? oldLANG : "", 1);
}
#endif
}