From e79e5c4899e82eff1032b1f8e530234c8fcbd8b9 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 14 Nov 2024 15:12:57 -0500 Subject: 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 --- assert/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'assert/Makefile') 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) -- cgit v1.2.3