tar/test/test_option_b.c \
tar/test/test_option_exclude.c \
tar/test/test_option_k.c \
- tar/test/test_option_keep_newer.c \
+ tar/test/test_option_keep_newer_files.c \
tar/test/test_option_q.c \
tar/test/test_option_r.c \
tar/test/test_option_s.c \
#include "test.h"
__FBSDID("$FreeBSD$");
-DEFINE_TEST(test_option_keep_newer)
+DEFINE_TEST(test_option_keep_newer_files)
{
- const char *reffile = "test_option_keep_newer.tgz";
+ const char *reffile = "test_option_keep_newer_files.tgz";
/* Reference file has one entry "file" with a very old timestamp. */
extract_reference_file(reffile);
- /* Test 1: Without --keep-newer */
+ /* Test 1: Without --keep-newer-files */
assertMakeDir("test1", 0755);
assertChdir("test1");
assertMakeFile("file", 0644, "new");
assertEmptyFile("test.err");
assertChdir("..");
- /* Test 2: With --keep-newer */
+ /* Test 2: With --keep-newer-files */
assertMakeDir("test2", 0755);
assertChdir("test2");
assertMakeFile("file", 0644, "new");
assertEqualInt(0,
- systemf("%s -xf ../%s --keep-newer >test.out 2>test.err", testprog, reffile));
+ systemf("%s -xf ../%s --keep-newer-files >test.out 2>test.err", testprog, reffile));
assertFileContents("new", 3, "file");
assertEmptyFile("test.out");
assertEmptyFile("test.err");