getcwd() and ENOENT
Jeremy Drake
cygwin@jdrake.com
Tue Jul 29 23:22:02 GMT 2025
I have been looking at test failures in LLVM, and I've come across a
strange one (to me). It appears to be failing because it expects to:
create a temp directory
chdir to the temp directory
rmdir the temp directory
(skip the test if the rmdir fails)
call getcwd
fail the test if it doesn't get an error of ENOENT
...
POSIX Issue 8 doesn't specify ENOENT on getcwd[1], but the Linux man page
does[2].
Is this an issue in the test and it should just be skipped on Cygwin, or
should Cygwin's getcwd be failing with ENOENT in that case?
1: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getcwd.html
2: https://man7.org/linux/man-pages/man3/getcwd.3.html
More information about the Cygwin
mailing list