[PATCH] putenv tests: Silence -Wanalyzer-putenv-of-auto-var.

2024-05-23 Thread Collin Funk
* tests/test-putenv.c (main): Declare static variables to pass to putenv. --- ChangeLog | 6 ++ tests/test-putenv.c | 12 +--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e09ff2a234..bc128db28b 100644 --- a/ChangeLog +++

Native windows boot-time

2024-05-23 Thread Collin Funk
Hi Bruno, Does the get_windows_boot_time () not work on Native Windows? The Mingw and MSVC actions fail it. I'm thinking that it could be implemented using GetTickCount64 (). The Windows documentation says [1]: Retrieves the number of milliseconds that have elapsed since the system was

[PATCH] POSIX.1-2024 has been approved

2024-05-23 Thread Paul Eggert
It hasn’t been published yet, so just update documentation talking about “draft” POSIX, about particular POSIX versions, etc. More work will need to be done once it’s published on the web, to update URLs, better document new and changed interfaces, and presumably to implement some of the new

Re: mbrtoc32: Work around bug in Cygwin 3.5.3

2024-05-23 Thread Collin Funk
On 5/23/24 3:01 PM, Bruno Haible wrote: > The mbrtoc32 function, newly added in Cygwin 3.5.0, is buggy. > > These two patches provide a workaround (at the cost of deactivating > the GB18030 locale support in Cygwin), and add a two test cases. Looks good. Thanks for all the Cygwin fixes. Collin

mbrtoc32: Work around bug in Cygwin 3.5.3

2024-05-23 Thread Bruno Haible
The mbrtoc32 function, newly added in Cygwin 3.5.0, is buggy. These two patches provide a workaround (at the cost of deactivating the GB18030 locale support in Cygwin), and add a two test cases. 2024-05-23 Bruno Haible mbrtoc32: Strengthen tests. * tests/test-mbrtoc32.c

sethostname tests: Avoid test failure on Cygwin

2024-05-23 Thread Bruno Haible
On the GitHub Cygwin machines (Cygwin 3.3.6 and 3.5.3), I see this test failure: FAIL: test-sethostname2 === setting a too long hostname succeeded. FAIL test-sethostname2.exe (exit status: 1) The cause: Cygwin apparently does not reject a too long hostname argument. While

access, euidaccess tests: Avoid test failures on Cygwin

2024-05-23 Thread Bruno Haible
On the Cygwin 3.3.6 and 3.5.3 machines at GitHub I see these test failures: FAIL: test-access = ../../gltests/test-access.h:83: assertion 'func (BASE "f2", W_OK) == -1' failed FAIL: test-euidaccess = ../../gltests/test-access.h:83: assertion 'func (BASE

c32is*, c32toupper tests: Avoid test failures on Cygwin

2024-05-23 Thread Bruno Haible
On Cygwin 3.5.3, I see these test failures: FAIL: test-c32isalpha.sh FAIL: test-c32iscntrl.sh FAIL: test-c32isgraph.sh FAIL: test-c32islower.sh FAIL: test-c32isprint.sh FAIL: test-c32ispunct.sh FAIL: test-c32toupper.sh Thanks to CONTINUE_AFTER_ASSERT, it's easy to find all the ASSERTs that fail.

poll tests: Avoid test failure on Cygwin

2024-05-23 Thread Bruno Haible
On Cygwin 3.4.6 and older, but not on Cygwin 3.5.3, I see this test failure: FAIL: test-poll.exe This patch works around it, like we already did for AIX and native Windows. 2024-05-23 Bruno Haible poll tests: Avoid test failure on Cygwin. * tests/test-poll.c (test_pipe):

passfd tests: Mark as expected failure on Cygwin

2024-05-23 Thread Bruno Haible
On Cygwin 3.4.6 and older, but not on Cygwin 3.5.3, I see the 'test-passfd' test fail. Since the source code of Cygwin 3.5.3 does not handle SCM_RIGHTS, it must be a spurious success. This patch marks the test as expecting to fail on Cygwin. 2024-05-23 Bruno Haible passfd tests:

renameatu: Work around Cygwin 3.4.6 bug

2024-05-23 Thread Bruno Haible
On Cygwin 3.4.6, but not on Cygwin 3.5.3, I see a test failure: FAIL: test-renameatu.exe The cause is that the renameat2 function, which was added in Cygwin 2.9.0, does not fail as expected when the RENAME_NOREPLACE flag is specified and source and destination are the same. The workaround is

Re: readlinkat, areadlinkat: Avoid test failures on Cygwin 3.4.6

2024-05-23 Thread Collin Funk
On 5/23/24 5:55 AM, Bruno Haible wrote: >> I just noticed in the Cygwin 32 logs that c32is* tests pass while on >> Cygwin 64 they fail. > > That's because the Cygwin 64 build is version 3.5.3, whereas the Cygwin 32 > build is version 3.3.6. Look at the 'cygcheck' output in the log. Hahaha. well

Re: readlinkat, areadlinkat: Avoid test failures on Cygwin 3.4.6

2024-05-23 Thread Bruno Haible
Collin Funk wrote: > I just noticed in the Cygwin 32 logs that c32is* tests pass while on > Cygwin 64 they fail. That's because the Cygwin 64 build is version 3.5.3, whereas the Cygwin 32 build is version 3.3.6. Look at the 'cygcheck' output in the log. Bruno

Re: readlinkat, areadlinkat: Avoid test failures on Cygwin 3.4.6

2024-05-23 Thread Collin Funk
Hi Bruno, On 5/23/24 3:48 AM, Bruno Haible wrote: > On Cygwin 3.4.6, but not on Cygwin 3.5.3, I see these test failures: > > FAIL: test-areadlinkat.exe > FAIL: test-areadlinkat-with-size.exe > FAIL: test-readlinkat.exe > > The cause is an errno value EBADF, where EINVAL would be better. > Not

readlinkat, areadlinkat: Avoid test failures on Cygwin 3.4.6

2024-05-23 Thread Bruno Haible
On Cygwin 3.4.6, but not on Cygwin 3.5.3, I see these test failures: FAIL: test-areadlinkat.exe FAIL: test-areadlinkat-with-size.exe FAIL: test-readlinkat.exe The cause is an errno value EBADF, where EINVAL would be better. Not worth adding a workaround. This patch avoids the failures.

doc: Small updates regarding Cygwin

2024-05-23 Thread Bruno Haible
I looked at cygwin/winsup/doc/new-features.xml from Cygwin 3.5.3. 2024-05-23 Bruno Haible doc: Small updates regarding Cygwin. * doc/glibc-functions/fallocate.texi: Update for Cygwin 3.5.x. * doc/posix-functions/c8rtomb.texi: Likewise. *