Files
freebsd/contrib
Enji Cooper 6f3445006a [tests] lib/libc/gen:assert_test: skip tests when NDEBUG set
In the event that NDEBUG is specified in CFLAGS--which is most likely
triggered via `MK_ASSERT_DEBUG` == "no" -- all assert(3) statements are
optimized out by design. This breaks the assert(3) tests as they
specifically rely on assert(3) actually raising a `SIGABRT` instead of
quietly succeeding.

Skip both tests if `NDEBUG` is set. There's no sense running the
`assert(true)` test if the result could instead be a false positive.

MFC after:	2 weeks
2026-09-21 23:30:30 -07:00
..
…
…
2026-07-05 11:31:49 -07:00
2025-11-03 21:18:46 +01:00
2026-09-01 09:27:52 +07:00
2026-09-02 21:30:33 -07:00
…
2026-09-05 10:12:11 -04:00
2026-06-19 09:26:20 +02:00
2026-09-19 11:20:29 -07:00
2026-03-23 11:41:51 -04:00
2026-03-05 17:13:08 +01:00
2026-04-07 09:14:41 -04:00
2026-03-15 00:41:29 -03:00
2026-08-03 15:05:09 +01:00
…
2026-01-11 16:42:18 +00:00
2026-01-14 16:28:57 +01:00
2026-06-09 00:45:34 +02:00
2026-05-12 07:33:03 -07:00
2026-02-01 10:36:15 -05:00
2026-03-15 23:22:18 -03:00
…
…
2026-09-13 15:29:59 +02:00
2026-09-16 14:22:09 +00:00
…
2026-08-10 20:54:02 -07:00
2026-09-13 18:09:38 -07:00