Here's the status of running a gnulib testdir of `./posix-modules --for-msvc` on recent mingw and MSVC 14.
Volunteers to work on this are welcome. You have the Hanukkah or Christmas season in front of you :) =============================================================================== 20 Failures on both mingw and MSVC: FAIL: test-fdopendir ==================== ../../gltests/test-fdopendir.c:76: assertion 'dup2 (fd, fd) == -1' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-fdopendir.exe (exit status: 3) FAIL: test-fstatat ================== ../../gltests/test-stat.h:35: assertion 'SAME_INODE (st1, st2)' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-fstatat.exe (exit status: 3) FAIL: test-futimens =================== ../../gltests/nap.h:69: assertion 'nanosleep (&delay_spec, 0) == 0' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-futimens.exe (exit status: 3) FAIL: test-getaddrinfo ====================== FAIL test-getaddrinfo.exe (exit status: 4) FAIL: test-getopt-posix ======================= ../../gltests/test-getopt.h:773: assertion 'strcmp (argv[1], "-p") == 0' failed FAIL test-getopt-posix.exe (exit status: 3) FAIL: test-localename ===================== ../../gltests/test-localename.c:158: assertion 'strcmp (name, "de_DE.UTF-8") == 0' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-localename.exe (exit status: 3) FAIL: test-lstat ================ ../../gltests/test-lstat.h:34: assertion 'SAME_INODE (st1, st2)' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-lstat.exe (exit status: 3) FAIL: test-mbrtowc5.sh ====================== FAIL test-mbrtowc5.sh (exit status: 1) FAIL: test-nonblocking-socket.sh ================================ ../../gltests/test-nonblocking-reader.h:110: assertion 'spent_time < 0.5' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. test-nonblocking-socket-main.exe: ./test-nonblocking-socket-child.exe subprocess got fatal signal 15 ../../gltests/test-nonblocking-socket-main.c:120: assertion 'err == 0' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-nonblocking-socket.sh (exit status: 1) FAIL: test-perror.sh ==================== test-perror.sh: failed test: result should not contain a number FAIL test-perror.sh (exit status: 1) FAIL: test-poll =============== Unconnected socket test... failed (expecting POLLIN on passive socket) failed (expecting POLLRDNORM on passive socket) Connected sockets test... failed (expecting POLLOUT before writing) failed (expecting POLLWRNORM before writing) failed (expecting POLLIN | POLLRDNORM after writing) failed (expecting POLLIN after writing) failed (expecting POLLRDNORM after writing) General socket test with fork... passed Pipe test... failed (expecting POLLHUP after shutdown) FAIL test-poll.exe (exit status: 8) FAIL: test-renameat =================== ../../gltests/test-rename.h:115: assertion 'errno == ENOENT' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-renameat.exe (exit status: 3) FAIL: test-select ================= Invalid nfd test... failed (invalid errno after negative nfds) Invalid fd test... passed Unconnected socket test... passed Connected sockets test... passed General socket test with fork... passed Pipe test... passed FAIL test-select.exe (exit status: 1) FAIL: test-select-out.sh ======================== FAIL test-select-out.sh (exit status: 1) FAIL: test-stat =============== ../../gltests/test-stat.h:35: assertion 'SAME_INODE (st1, st2)' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-stat.exe (exit status: 3) FAIL: test-stat-time ==================== ../../gltests/nap.h:69: assertion 'nanosleep (&delay_spec, 0) == 0' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-stat-time.exe (exit status: 3) FAIL: test-statat ================= ../../gltests/test-stat.h:35: assertion 'SAME_INODE (st1, st2)' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-statat.exe (exit status: 3) FAIL: test-strerror_r ===================== ../../gltests/test-strerror_r.c:45: assertion 'strerror_r (ETIMEDOUT, buf, sizeof buf) == 0' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-strerror_r.exe (exit status: 3) FAIL: test-utimens ================== ../../gltests/nap.h:69: assertion 'nanosleep (&delay_spec, 0) == 0' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-utimens.exe (exit status: 3) FAIL: test-utimensat ==================== ../../gltests/nap.h:69: assertion 'nanosleep (&delay_spec, 0) == 0' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-utimensat.exe (exit status: 3) =============================================================================== 3 more Failures on mingw: FAIL: test-expm1 ================ ../../gltests/test-expm1.h:49: assertion 'y >= - x' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-expm1.exe (exit status: 3) FAIL: test-localeconv ===================== ../../gltests/test-localeconv.c:53: assertion 'l->frac_digits == CHAR_MAX' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-localeconv.exe (exit status: 3) FAIL: test-pthread_sigmask2 =========================== ../../gltests/test-pthread_sigmask2.c:85: assertion 'sigint_occurred == 1' failed This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. FAIL test-pthread_sigmask2.exe (exit status: 3) =============================================================================== 21 more Failures on MSVC: FAIL: test-areadlink ==================== c:\cygwin64\home\bruno\testdir-posix\gltests\test-areadlink.h:52: assertion 'errno == ENOTDIR || errno == EINVAL' failed FAIL test-areadlink.exe (exit status: 127) FAIL: test-areadlink-with-size ============================== c:\cygwin64\home\bruno\testdir-posix\gltests\test-areadlink.h:52: assertion 'errno == ENOTDIR || errno == EINVAL' failed FAIL test-areadlink-with-size.exe (exit status: 127) FAIL: test-areadlinkat ====================== c:\cygwin64\home\bruno\testdir-posix\gltests\test-areadlink.h:52: assertion 'errno == ENOTDIR || errno == EINVAL' failed FAIL test-areadlinkat.exe (exit status: 127) FAIL: test-getcwd-lgpl ====================== FAIL test-getcwd-lgpl.exe (exit status: 127) FAIL: test-linkat ================= c:\cygwin64\home\bruno\testdir-posix\gltests\test-link.h:118: assertion 'errno == ENOTDIR || errno == EINVAL' failed FAIL test-linkat.exe (exit status: 127) FAIL: test-mbrtowc-w32-3.sh =========================== C:\cygwin64\home\bruno\testdir-posix\gltests\test-mbrtowc-w32.c:301: assertion 'mbsinit (&state)' failed FAIL test-mbrtowc-w32-3.sh (exit status: 127) FAIL: test-mbrtowc-w32-4.sh =========================== C:\cygwin64\home\bruno\testdir-posix\gltests\test-mbrtowc-w32.c:373: assertion 'mbsinit (&state)' failed FAIL test-mbrtowc-w32-4.sh (exit status: 127) FAIL: test-mbrtowc-w32-5.sh =========================== C:\cygwin64\home\bruno\testdir-posix\gltests\test-mbrtowc-w32.c:445: assertion 'mbsinit (&state)' failed FAIL test-mbrtowc-w32-5.sh (exit status: 127) FAIL: test-nonblocking-pipe.sh ============================== ../../gltests/test-nonblocking-pipe.sh: line 14: 7608 Segmentation fault ./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 2 FAIL test-nonblocking-pipe.sh (exit status: 1) FAIL: test-readlink =================== c:\cygwin64\home\bruno\testdir-posix\gltests\test-readlink.h:54: assertion 'errno == ENOTDIR || errno == EINVAL' failed FAIL test-readlink.exe (exit status: 127) FAIL: test-readlinkat ===================== c:\cygwin64\home\bruno\testdir-posix\gltests\test-readlink.h:54: assertion 'errno == ENOTDIR || errno == EINVAL' failed FAIL test-readlinkat.exe (exit status: 127) FAIL: test-remove ================= C:\cygwin64\home\bruno\testdir-posix\gltests\test-remove.c:68: assertion 'errno == ENOTDIR' failed FAIL test-remove.exe (exit status: 127) FAIL: test-rename ================= c:\cygwin64\home\bruno\testdir-posix\gltests\test-rename.h:135: assertion 'errno == ENOTDIR' failed FAIL test-rename.exe (exit status: 127) FAIL: test-setenv ================= FAIL test-setenv.exe (exit status: 139) FAIL: test-snprintf-posix ========================= c:\cygwin64\home\bruno\testdir-posix\gltests\test-snprintf-posix.h:92: assertion 'retval == 5' failed FAIL test-snprintf-posix.exe (exit status: 127) FAIL: test-snprintf =================== C:\cygwin64\home\bruno\testdir-posix\gltests\test-snprintf.c:44: assertion 'retval == 5' failed FAIL test-snprintf.exe (exit status: 127) FAIL: test-unlink ================= c:\cygwin64\home\bruno\testdir-posix\gltests\test-unlink.h:58: assertion 'errno == ENOTDIR' failed FAIL test-unlink.exe (exit status: 127) FAIL: test-unlinkat =================== c:\cygwin64\home\bruno\testdir-posix\gltests\test-unlink.h:58: assertion 'errno == ENOTDIR' failed FAIL test-unlinkat.exe (exit status: 127) FAIL: test-vasnprintf ===================== C:\cygwin64\home\bruno\testdir-posix\gltests\test-vasnprintf.c:53: assertion 'result != NULL' failed FAIL test-vasnprintf.exe (exit status: 127) FAIL: test-vsnprintf-posix ========================== c:\cygwin64\home\bruno\testdir-posix\gltests\test-snprintf-posix.h:92: assertion 'retval == 5' failed FAIL test-vsnprintf-posix.exe (exit status: 127) FAIL: test-vsnprintf ==================== C:\cygwin64\home\bruno\testdir-posix\gltests\test-vsnprintf.c:57: assertion 'retval == 5' failed FAIL test-vsnprintf.exe (exit status: 127)