diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-09-03 13:39:00 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-09-03 14:37:28 +0200 |
commit | face4b1257b6f897906f51510b7f4e8793e6465a (patch) | |
tree | 257e2d00f745b8174d7acf487eb9fc5c5b28731f /tests/tar_xattr_schily_bin.c | |
parent | 84ff0984bb5b471d0b4cbc0b0fca156c29273bf5 (diff) |
Cleanup copy & paste mess in the tar parser test cases
Many of the patterns tested are very repetetive. This commit moves the
two common test cases out into helper functions and uses them for
the test cases.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/tar_xattr_schily_bin.c')
-rw-r--r-- | tests/tar_xattr_schily_bin.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/tar_xattr_schily_bin.c b/tests/tar_xattr_schily_bin.c index 29587f6..0fe2004 100644 --- a/tests/tar_xattr_schily_bin.c +++ b/tests/tar_xattr_schily_bin.c @@ -4,15 +4,7 @@ * * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at> */ -#include "config.h" - -#include "tar.h" -#include "test.h" - -#define STR(x) #x -#define STRVALUE(x) STR(x) - -#define TEST_PATH STRVALUE(TESTPATH) +#include "test_tar.h" static const uint8_t value[] = { 0x00, 0x00, 0x00, 0x02, |