This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[v3] Fix two more testcases to use try_mkfifo


Hi,

tested x86-linux, committed to mainline.

Paolo.

///////////
2004-01-12  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
	Use try_mkfifo.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
	Likewise.
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc	2004-01-11 16:17:01.000000000 +0100
+++ libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc	2004-01-12 18:08:55.000000000 +0100
@@ -34,13 +34,14 @@
 {
   bool test __attribute__((unused)) = true;
   using namespace std; 
+  using namespace __gnu_test;
 
   locale loc_en(__gnu_test::try_named_locale("en_US"));
   locale loc_fr(__gnu_test::try_named_locale("fr_FR"));
 
   const char* name = "tmp_fifo_13582-2";
   unlink(name);
-  mkfifo(name, S_IRWXU);
+  try_mkfifo(name, S_IRWXU);
   
   int child = fork();
   if (child == 0)
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc	2004-01-11 16:17:02.000000000 +0100
+++ libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc	2004-01-12 18:09:33.000000000 +0100
@@ -33,14 +33,15 @@
 void test01()
 {
   bool test __attribute__((unused)) = true;
-  using namespace std; 
+  using namespace std;
+  using namespace __gnu_test;
 
   locale loc_en(__gnu_test::try_named_locale("en_US"));
   locale loc_fr(__gnu_test::try_named_locale("fr_FR"));
 
   const char* name = "tmp_fifo_13582-2";
   unlink(name);
-  mkfifo(name, S_IRWXU);
+  try_mkfifo(name, S_IRWXU);
   
   int child = fork();
   if (child == 0)

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