9964.cc (test_07): Adjust timing.

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

From-SVN: r65957
This commit is contained in:
Loren J. Rittle 2003-04-22 21:06:56 +00:00 committed by Loren J. Rittle
parent befcd99bcb
commit 9734801a49
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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>
* include/std/std_streambuf.h (_S_pback_size, _M_pback,

View File

@ -51,17 +51,18 @@ void test_07()
{
filebuf fbin;
fbin.open(name, ios_base::in);
sleep(1);
sleep(2);
fbin.close();
exit(0);
}
filebuf fb;
sleep(1);
filebuf* ret = fb.open(name, ios_base::out | ios_base::trunc);
VERIFY( ret != NULL );
VERIFY( fb.is_open() );
sleep(2);
sleep(3);
fb.sputc('a');
ret = fb.close();