diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-03-12 05:12:23 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-03-12 05:12:23 +0000 |
commit | ce12a09ced75026eed87f8a2a64d05ba98bb98d3 (patch) | |
tree | 9c21760d227df15ea93267cc90ba035cae1b69e6 /lib/libarchive/test/test_compat_gtar.c | |
parent | e30139dff5b92abb4d81b61ed5003c803b4b72ad (diff) | |
download | FreeBSD-src-ce12a09ced75026eed87f8a2a64d05ba98bb98d3.zip FreeBSD-src-ce12a09ced75026eed87f8a2a64d05ba98bb98d3.tar.gz |
Portability: Eliminate the need for uudecode by incorporating
uudecode into the main test driver and invoking it just-in-time
within the various tests.
Also, incorporate a number of improvements to the main test support
code that have proven useful on other projects where I've used this
framework.
Diffstat (limited to 'lib/libarchive/test/test_compat_gtar.c')
-rw-r--r-- | lib/libarchive/test/test_compat_gtar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/test/test_compat_gtar.c b/lib/libarchive/test/test_compat_gtar.c index 0f0dadf..24a294f 100644 --- a/lib/libarchive/test/test_compat_gtar.c +++ b/lib/libarchive/test/test_compat_gtar.c @@ -40,14 +40,14 @@ __FBSDID("$FreeBSD$"); static void test_compat_gtar_1(void) { - char name[1024]; + char name[] = "test_compat_gtar_1.tgz"; struct archive_entry *ae; struct archive *a; assert((a = archive_read_new()) != NULL); assertEqualIntA(a, ARCHIVE_OK, archive_read_support_compression_all(a)); assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_all(a)); - sprintf(name, "%s/test_compat_gtar_1.tgz", refdir); + extract_reference_file(name); assertEqualIntA(a, ARCHIVE_OK, archive_read_open_filename(a, name, 10240)); /* Read first entry. */ |