aboutsummaryrefslogtreecommitdiff
path: root/assert/Makefile
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2024-11-14 15:12:57 -0500
committerDJ Delorie <dj@redhat.com>2024-12-20 22:44:01 -0500
commite79e5c4899e82eff1032b1f8e530234c8fcbd8b9 (patch)
treeeeda6f5356f5f0c5b261e776f1a05bbbe803b2da /assert/Makefile
parentb3a7a15d99065fe2fc20f40da4ba20eb946b1f52 (diff)
downloadglibc-e79e5c4899e82eff1032b1f8e530234c8fcbd8b9.tar.xz
glibc-e79e5c4899e82eff1032b1f8e530234c8fcbd8b9.zip
assert: ensure posix compliance, add tests for such
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>
Diffstat (limited to 'assert/Makefile')
-rw-r--r--assert/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/assert/Makefile b/assert/Makefile
index 35dc908ddb..6f2717c80a 100644
--- a/assert/Makefile
+++ b/assert/Makefile
@@ -38,6 +38,7 @@ tests := \
test-assert-perr \
tst-assert-c++ \
tst-assert-g++ \
+ test-assert-2 \
# tests
ifeq ($(have-cxx-thread_local),yes)