This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ testsuite regressions
- From: Paolo Carlini <pcarlini at suse dot de>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 13 Jan 2005 16:17:43 +0100
- Subject: Re: libstdc++ testsuite regressions
- References: <200501131445.j0DEjvD25154@makai.watson.ibm.com>
David Edelsohn wrote:
I am seeing new libstdc++ failures because some tests are
referencing setenv(), but the function is not declared:
Does the below help? Otherwise something is very misteriously broken
wrt _GLIBCXX_HAVE_SETENV...
Thanks,
Paolo.
//////////////
diff -urN libstdc++-v3-orig/testsuite/22_locale/locale/cons/4.cc libstdc++-v3/testsuite/22_locale/locale/cons/4.cc
--- libstdc++-v3-orig/testsuite/22_locale/locale/cons/4.cc 2003-09-23 22:02:25.000000000 +0200
+++ libstdc++-v3/testsuite/22_locale/locale/cons/4.cc 2005-01-13 16:09:45.000000000 +0100
@@ -1,6 +1,6 @@
// 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation
//
// 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
@@ -21,6 +21,7 @@
// 22.1.1.2 locale constructors and destructors [lib.locale.cons]
#include <cwchar> // for mbstate_t
+#include <cstdlib>
#include <locale>
#include <stdexcept>
#include <testsuite_hooks.h>
diff -urN libstdc++-v3-orig/testsuite/22_locale/locale/cons/5.cc libstdc++-v3/testsuite/22_locale/locale/cons/5.cc
--- libstdc++-v3-orig/testsuite/22_locale/locale/cons/5.cc 2003-09-23 22:02:25.000000000 +0200
+++ libstdc++-v3/testsuite/22_locale/locale/cons/5.cc 2005-01-13 16:05:39.000000000 +0100
@@ -1,6 +1,6 @@
// 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation
//
// 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
@@ -21,6 +21,7 @@
// 22.1.1.2 locale constructors and destructors [lib.locale.cons]
#include <cwchar> // for mbstate_t
+#include <cstdlib>
#include <locale>
#include <stdexcept>
#include <testsuite_hooks.h>