diff options
author | Tim Kientzle <kientzle@acm.org> | 2022-02-01 19:33:41 -0800 |
---|---|---|
committer | Tim Kientzle <kientzle@acm.org> | 2022-02-01 19:33:41 -0800 |
commit | e93b6c3009982d951dbb27c8dc0d02069273a56a (patch) | |
tree | e9409dbb8dc4ae8b7f08a9077fed77e6c79b19e6 /libarchive/test/test_read_pax_truncated.c | |
parent | 3665c7587d6561f0209da1716f86fbebb9a26778 (diff) | |
download | libarchive-e93b6c3009982d951dbb27c8dc0d02069273a56a.tar.gz |
Reorganize test code a bit
A few guiding principles:
* Each test source file includes ONLY "test.h" to make it easy
to create new tests.
* Each test suite has a "test.h" that includes "test_util/test_common.h"
to get access to all the common testing utility functions.
So "test_common.h" is then responsible for including
any smaller headers that declare specific pieces of
shared test functionality.
I've also pulled some test filtering logic that was _only_ used
in test_main.c into that file, and repurposed "test_utils.[ch]"
for common utility code. (Eventually, a lot of the assertion
helpers currently in "test_main.c" should probably be organized
into one or more source files of their own.)
Diffstat (limited to 'libarchive/test/test_read_pax_truncated.c')
-rw-r--r-- | libarchive/test/test_read_pax_truncated.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libarchive/test/test_read_pax_truncated.c b/libarchive/test/test_read_pax_truncated.c index a6705fa9..6a0bb9ba 100644 --- a/libarchive/test/test_read_pax_truncated.c +++ b/libarchive/test/test_read_pax_truncated.c @@ -23,7 +23,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "test.h" -#include "test_utils.h" __FBSDID("$FreeBSD: head/lib/libarchive/test/test_read_pax_truncated.c 189483 2009-03-07 03:34:34Z kientzle $"); DEFINE_TEST(test_read_pax_truncated) |