[Bug libstdc++/19781] testsuite_hooks.cc doesn't test for mkfifo

bkoz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu May 5 16:49:00 GMT 2005


------- Additional Comments From bkoz at gcc dot gnu dot org  2005-05-05 16:49 -------

This indeed can be fixed. Instead of 

#if defined (_NEWLIB_VERSION) || defined (__MINGW32_VERSION)
    /* Newlib and MinGW32 do not have mkfifo.  */
    exit(0);
#else

do something like

#if _GLIBCXX_HAVE_MKFIFO
    mkfifo(filename, mode);
#else
    exit(0);
#endif

You'd do the check for mkfifo in GLIBCXX_CONFIGURE_TESTSUITE or something like
GLIBCXX_CHECK_SETRLIMIT_ancilliary.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19781



More information about the Gcc-bugs mailing list