These tests recently started failing at compile time for me due to no
declarations for unlink due to no include of unistd.h. So, I did the
obvious thing and included it.
tested x86/linux
-benjamin
2011-08-03 Benjamin Kosnik <b...@redhat.com>
* testsuite/performance/27_io/filebuf_sputn_unbuf.cc: Include
unistd.h for unlink.
* testsuite/performance/27_io/ofstream_insert_int.cc: Same.
* testsuite/performance/27_io/ifstream_extract_int.cc: Same.
* testsuite/performance/27_io/ifstream_getline-2.cc: Same.
* testsuite/performance/27_io/fstream_seek_write.cc: Same.
* testsuite/performance/27_io/ifstream_extract_chars.cc: Same.
* testsuite/performance/27_io/ofstream_insert_float.cc: Same.
* testsuite/performance/27_io/ifstream_extract_float.cc: Same.
* testsuite/performance/27_io/filebuf_sputc.cc: Same.
Index: testsuite/performance/27_io/filebuf_sputn_unbuf.cc
===================================================================
--- testsuite/performance/27_io/filebuf_sputn_unbuf.cc (revision 177306)
+++ testsuite/performance/27_io/filebuf_sputn_unbuf.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2009, 2011 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
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+#include <unistd.h>
#include <cstdio>
#include <fstream>
#include <testsuite_performance.h>
Index: testsuite/performance/27_io/ofstream_insert_int.cc
===================================================================
--- testsuite/performance/27_io/ofstream_insert_int.cc (revision 177306)
+++ testsuite/performance/27_io/ofstream_insert_int.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 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
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+#include <unistd.h>
#include <fstream>
#include <testsuite_performance.h>
Index: testsuite/performance/27_io/ifstream_extract_int.cc
===================================================================
--- testsuite/performance/27_io/ifstream_extract_int.cc (revision 177306)
+++ testsuite/performance/27_io/ifstream_extract_int.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 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
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+#include <unistd.h>
#include <fstream>
#include <testsuite_performance.h>
Index: testsuite/performance/27_io/ifstream_getline-2.cc
===================================================================
--- testsuite/performance/27_io/ifstream_getline-2.cc (revision 177306)
+++ testsuite/performance/27_io/ifstream_getline-2.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2009, 2011 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
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+#include <unistd.h>
#include <cstdio>
#include <fstream>
#include <string>
Index: testsuite/performance/27_io/fstream_seek_write.cc
===================================================================
--- testsuite/performance/27_io/fstream_seek_write.cc (revision 177306)
+++ testsuite/performance/27_io/fstream_seek_write.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 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
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+#include <unistd.h>
#include <fstream>
#include <testsuite_performance.h>
Index: testsuite/performance/27_io/ifstream_extract_chars.cc
===================================================================
--- testsuite/performance/27_io/ifstream_extract_chars.cc (revision 177306)
+++ testsuite/performance/27_io/ifstream_extract_chars.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2005, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2005, 2009, 2011 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
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+#include <unistd.h>
#include <cstdio>
#include <fstream>
#include <string>
Index: testsuite/performance/27_io/ofstream_insert_float.cc
===================================================================
--- testsuite/performance/27_io/ofstream_insert_float.cc (revision 177306)
+++ testsuite/performance/27_io/ofstream_insert_float.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 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
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+#include <unistd.h>
#include <fstream>
#include <sstream>
#include <testsuite_performance.h>
Index: testsuite/performance/27_io/ifstream_extract_float.cc
===================================================================
--- testsuite/performance/27_io/ifstream_extract_float.cc (revision 177306)
+++ testsuite/performance/27_io/ifstream_extract_float.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2009, 2011 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
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+#include <unistd.h>
#include <fstream>
#include <sstream>
#include <testsuite_performance.h>
Index: testsuite/performance/27_io/filebuf_sputc.cc
===================================================================
--- testsuite/performance/27_io/filebuf_sputc.cc (revision 177306)
+++ testsuite/performance/27_io/filebuf_sputc.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 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
@@ -15,7 +15,7 @@
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-
+#include <unistd.h>
#include <cstdio>
#include <fstream>
#include <testsuite_performance.h>