]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Refactor hardlink/symlink support in test harness: we now have
authorTim Kientzle <kientzle@gmail.com>
Sat, 12 Sep 2009 05:24:28 +0000 (01:24 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 12 Sep 2009 05:24:28 +0000 (01:24 -0400)
commit26ef8e6ac13f6649f45de4e63dcb1de4f2e09e5d
treeeb1aafd9f0f7ed9c830df8e32718f00c28537e6f
parent19a4ab36333d13adde715fac39fb07e4f1424e68
Refactor hardlink/symlink support in test harness:  we now have
assertIsHardlink() and assertIsNotHardlink().  On the symlink side,
I've added a run-time platform probe canSymlink() that tests the
local platform the first time it is called and remembers the result.
As an experiment, refactor test_basic.c to omit symlinks from the
tests if the current platform lacks symlink support.

SVN-Revision: 1455
cpio/test/main.c
cpio/test/test.h
cpio/test/test_basic.c
cpio/test/test_gcpio_compat.c
cpio/test/test_option_l.c