13582-2.cc: Use try_mkfifo.

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.

From-SVN: r75738
This commit is contained in:
Paolo Carlini 2004-01-12 17:25:25 +00:00 committed by Paolo Carlini
parent 06e4eab554
commit 300b3317f3
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,10 @@
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.
2004-01-12 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (struct __numpunct_cache):

View File

@ -34,13 +34,14 @@ void test01()
{
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)

View File

@ -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)