access tests: Fix test failure on native Windows

2020-11-30 Thread Bruno Haible
On native Windows, the first run of 'test-access.exe' succeeds, but the second and subsequent runs fail. The cause is a left-over file 'test-access.tf2' with mode 'r-xr-xr-x'. The original mistake is that we did not check the success of one of the cleanup statements. This patch fixes it. 2020-11

[PATCH] faccessat: link with $(LIB_EACCESS)

2020-11-30 Thread Paul Eggert
* modules/faccessat (Link:): Add $(LIB_EACCESS), since this module depends on euidaccess. --- ChangeLog | 6 ++ modules/faccessat | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 774dbee78..85bc48ff2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9

execute, spawn-pipe: Make multithread-safe on native Windows

2020-11-30 Thread Bruno Haible
So far, the modules 'execute' and 'spawn-pipe' use, on native Windows, the MSVCRT function _spawnvpe. But this function requires temporary assignments to the stdin, stdout, or stderr file descriptors, which is of course not multithread-safe. With this patch, the modules use 'CreateProcess' directl

Re: execute: Add tests

2020-11-30 Thread Bruno Haible
A few more tests come here. 2020-11-30 Bruno Haible execute tests: Add more tests. * tests/test-execute-main.c: Add tests for reading, writing, isatty on inherited file descriptors >= 3. * tests/test-execute-child.c: Likewise. * tests/test-execute.sh: U