]> Savannah Git Hosting - gnulib.git/commitdiff
sys_wait-h tests: Check that WCOREDUMP is defined.
authorCollin Funk <collin.funk1@gmail.com>
Fri, 10 Jan 2025 19:34:06 +0000 (11:34 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Fri, 10 Jan 2025 19:34:06 +0000 (11:34 -0800)
* tests/test-sys_wait-h.h (test_sys_wait_macros): Check that WCOREDUMP
is defined and can be used.

ChangeLog
tests/test-sys_wait-h.h

index 99f913f1e5b61913a5a8be3ce6c43f184d1a4f01..b655cbe3bbc9725026d52dd682a809e89f9af519 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-01-10  Collin Funk  <collin.funk1@gmail.com>
 
+       sys_wait-h tests: Check that WCOREDUMP is defined.
+       * tests/test-sys_wait-h.h (test_sys_wait_macros): Check that WCOREDUMP
+       is defined and can be used.
+
        sys_wait-h: Update comment.
        * lib/sys_wait.in.h (WCOREDUMP): Remove comment about this macro being
        non-standardized since it was added by POSIX.1-2024.
index 20701bd4c615219de39a5783c5b527be769b6f46..cb160d8d6944b3f7f7e5615a1a31fc42563c1bdf 100644 (file)
@@ -38,7 +38,7 @@ test_sys_wait_macros (void)
       if (!!WIFSIGNALED (i) + !!WIFEXITED (i) + !!WIFSTOPPED (i) != 1)
         return 1;
     }
-  i = WEXITSTATUS (i) + WSTOPSIG (i) + WTERMSIG (i);
+  i = WEXITSTATUS (i) + WSTOPSIG (i) + WTERMSIG (i) + WCOREDUMP (i);
 
 #if 0
   switch (i)