This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++ testsuite regressions


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]