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]

[Patch] Adjust timings of a pipe test


Hi,

the below should fix the time-outs reported by some people...

I would appreciate if Loren could review it and Dave test it.

Thanks,
Paolo.

/////////////
2003-11-28  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
	Adjust timings.
diff -urN libstdc++-v3-orig/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc
--- libstdc++-v3-orig/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc	2003-11-26 01:08:10.000000000 +0100
+++ libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc	2003-11-28 11:56:03.000000000 +0100
@@ -43,6 +43,8 @@
       filebuf fb;
       fb.open(name, ios_base::out);
       fb.sputc('S');
+      fb.pubsync();
+      sleep(2);
       fb.close();
       return;
     }
@@ -50,6 +52,7 @@
   filebuf fb;
   fb.pubimbue(__gnu_test::try_named_locale("fr_FR"));
   fb.open(name, ios_base::in);
+  sleep(1);
   assert(fb.is_open());
   fb.pubimbue(__gnu_test::try_named_locale("en_US"));
   filebuf::int_type c = fb.sgetc();

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