does not
scale: there are only 125 possible exit codes available in this way.
Better use the ASSERT macro, which we are using for many years in other
places and which points immediately to the line in question.
2021-05-14 Bruno Haible
*alloc-gnu tests: Use ASSERT macro.
* tests
Eric Blake wrote:
> Here's a way to use ASSERT in a few more files. I'll probably push this
> tomorrow.
Yes, this looks good: wider applicability of the macro with minimal added
complexity.
When doing this, you can also remove the '#include ' of the files
tests/test-dirent-safer.c
tests/test
d726c6b5c Mon Sep 17 00:00:00 2001
From: Eric Blake
Date: Fri, 25 Dec 2009 16:06:48 -0700
Subject: [PATCH] tests: use macros.h in more places
Make the ASSERT macro a bit more reusable.
* tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
(ASSERT_STREAM): Provide default of stderr.
* tests/test-diren
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Bruno Haible on 12/24/2009 1:08 PM:
>>> Either way we create macros.h and put ASSERT there
>
> Done this this big commit, now.
Hmm. macros.h defines SIZEOF, and test-argv-iter.c defines
ARRAY_CARDINALITY, both of which are used to deter
Eric Blake wrote:
> > It does not require a modification of gnulib-tool. tests/macros.h is not
> > different in principle than tests/nan.h; it's only used in more places.
>
> But that means listing tests/macros.h in more than 100 modules/*-tests files.
>
> There comes a point where a file is so