This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[Patch] Adjust timings of a pipe test
- From: Paolo Carlini <pcarlini at suse dot de>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Cc: rittle at latour dot rsch dot comm dot mot dot com, danglin at gcc dot gnu dot org
- Date: Fri, 28 Nov 2003 12:05:23 +0100
- Subject: [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();