On Fri, 16 May 2025, Alejandro Colomar wrote:

> -  Add <assert.h> (and NDEBUG) to some test files that were missing it,
>    and also the forward declaration of strcmp(3).

Depending on libc headers like this in tests is discouraged.  The usual 
idiom is to use abort () on failure of a runtime check (rather than 
assert) and to declare abort in the test (or use __builtin_abort to avoid 
needing the declaration).

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to