Commit 9734801a by Loren J. Rittle Committed by Loren J. Rittle

9964.cc (test_07): Adjust timing.

	* testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
	Adjust timing.

From-SVN: r65957
parent befcd99b
2003-04-22 Loren J. Rittle <ljrittle@acm.org>
* testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
Adjust timing.
2003-04-22 Paolo Carlini <pcarlini@unitus.it> 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_S_pback_size, _M_pback, * include/std/std_streambuf.h (_S_pback_size, _M_pback,
......
...@@ -51,17 +51,18 @@ void test_07() ...@@ -51,17 +51,18 @@ void test_07()
{ {
filebuf fbin; filebuf fbin;
fbin.open(name, ios_base::in); fbin.open(name, ios_base::in);
sleep(1); sleep(2);
fbin.close(); fbin.close();
exit(0); exit(0);
} }
filebuf fb; filebuf fb;
sleep(1);
filebuf* ret = fb.open(name, ios_base::out | ios_base::trunc); filebuf* ret = fb.open(name, ios_base::out | ios_base::trunc);
VERIFY( ret != NULL ); VERIFY( ret != NULL );
VERIFY( fb.is_open() ); VERIFY( fb.is_open() );
sleep(2); sleep(3);
fb.sputc('a'); fb.sputc('a');
ret = fb.close(); ret = fb.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment