From 4682deeb62247d34de87f8e777f99e2d337fd377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 20 Oct 2024 15:21:43 +0200 Subject: New upstream version 1.3 --- tests/test-close.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/test-close.c') diff --git a/tests/test-close.c b/tests/test-close.c index 47b3aa45..ca2c21bf 100644 --- a/tests/test-close.c +++ b/tests/test-close.c @@ -22,6 +22,7 @@ SIGNATURE_CHECK (close, int, (int)); #include +#include #include "macros.h" @@ -40,6 +41,13 @@ main (void) ASSERT (close (99) == -1); ASSERT (errno == EBADF); } +#ifdef AT_FDCWD + { + errno = 0; + ASSERT (close (AT_FDCWD) == -1); + ASSERT (errno == EBADF); + } +#endif - return 0; + return test_exit_status; } -- cgit v1.2.3