aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/csup
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2026-09-22 06:22:57 +0000
committerEnji Cooper <ngie@FreeBSD.org>2026-09-22 06:30:30 +0000
commit6f3445006aa05550f14af65b04276c3d25169941 (patch)
treef69c11b0076e9fd15ae7ea13e8857255ebe95ce4 /usr.bin/csup
parent14b855d29603d9cdf76cdd2ddc8803633b856725 (diff)
[tests] lib/libc/gen:assert_test: skip tests when NDEBUG setHEADmain
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
Diffstat (limited to 'usr.bin/csup')
0 files changed, 0 insertions, 0 deletions