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_tar_hardlink.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_tar_hardlink.c')
-rw-r--r-- | lib/libarchive/test/test_compat_tar_hardlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/test/test_compat_tar_hardlink.c b/lib/libarchive/test/test_compat_tar_hardlink.c index 3b3b34d..6d1566f 100644 --- a/lib/libarchive/test/test_compat_tar_hardlink.c +++ b/lib/libarchive/test/test_compat_tar_hardlink.c @@ -46,14 +46,14 @@ __FBSDID("$FreeBSD$"); static void test_compat_tar_hardlink_1(void) { - char name[1024]; + char name[] = "test_compat_tar_hardlink_1.tar"; 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_tar_hardlink_1.tar", refdir); + extract_reference_file(name); assertEqualIntA(a, ARCHIVE_OK, archive_read_open_filename(a, name, 10240)); /* Read first entry, which is a regular file. */ |