Lines Matching refs:files
17 } files[] = { variable
39 static const int numfiles = sizeof(files) / sizeof(files[0]); in test_create()
49 assertMakeFile(files[i].name, 0644, "a"); in test_create()
62 assertEqualInt(0, utime(files[i].name, ×)); in test_create()
67 assertEqualInt(0, stat(files[i].name, &st)); in test_create()
68 files[i].atime_sec = st.st_atime; in test_create()
72 sleepUntilAfter(files[numfiles - 1].atime_sec); in test_create()
89 if (st.st_atime == files[0].atime_sec) { in DEFINE_TEST()
101 …r = systemf("echo %s | %s -pd copy-no-a > copy-no-a.out 2>copy-no-a.err", files[1].name, testprog); in DEFINE_TEST()
105 assertEqualInt(0, stat(files[1].name, &st)); in DEFINE_TEST()
107 assert(st.st_atime != files[1].atime_sec); in DEFINE_TEST()
110 r = systemf("echo %s | %s -o > archive-no-a.out 2>archive-no-a.err", files[2].name, testprog); in DEFINE_TEST()
113 assertEqualInt(0, stat(files[2].name, &st)); in DEFINE_TEST()
115 assert(st.st_atime != files[2].atime_sec); in DEFINE_TEST()
125 files[3].name, testprog); in DEFINE_TEST()
129 assertEqualInt(0, stat(files[3].name, &st)); in DEFINE_TEST()
131 assertEqualInt(st.st_atime, files[3].atime_sec); in DEFINE_TEST()
135 files[4].name, testprog); in DEFINE_TEST()
138 assertEqualInt(0, stat(files[4].name, &st)); in DEFINE_TEST()
140 assertEqualInt(st.st_atime, files[4].atime_sec); in DEFINE_TEST()