aboutsummaryrefslogtreecommitdiff
path: root/assert/test-assert-2.c
AgeCommit message (Collapse)AuthorFilesLines
2024-12-22assert/test-assert-2.c: Include <unistd.h>Samuel Thibault1-0/+1
For _exit declaration.
2024-12-20assert: ensure posix compliance, add tests for suchDJ Delorie1-0/+166
Fix assert.c so that even the fallback case conforms to POSIX, although not exactly the same as the default case so a test can tell the difference. Add a test that verifies that abort is called, and that the message printed to stderr has all the info that POSIX requires. Verify this even when malloc isn't usable. Reviewed-by: Paul Eggert <eggert@cs.ucla.edu>