Lines Matching defs:files
36 } files[] = {
46 * Create a bunch of test files and record their atimes.
47 * For the atime preserve/change tests, the files must have
50 * for a second after creating the files. (Creating all of the files
58 static const int numfiles = sizeof(files) / sizeof(files[0]);
68 assertMakeFile(files[i].name, 0644, "a");
76 assertEqualInt(0, utime(files[i].name, ×));
81 assertEqualInt(0, stat(files[i].name, &st));
82 files[i].atime_sec = st.st_atime;
86 sleepUntilAfter(files[numfiles - 1].atime_sec);
95 /* Create all of the test files. */
102 if (st.st_atime == files[0].atime_sec) {
114 r = systemf("echo %s | %s -pd copy-no-a > copy-no-a.out 2>copy-no-a.err", files[1].name, testprog);
118 assertEqualInt(0, stat(files[1].name, &st));
120 assert(st.st_atime != files[1].atime_sec);
123 r = systemf("echo %s | %s -o > archive-no-a.out 2>archive-no-a.err", files[2].name, testprog);
126 assertEqualInt(0, stat(files[2].name, &st));
128 assert(st.st_atime != files[2].atime_sec);
138 files[3].name, testprog);
142 assertEqualInt(0, stat(files[3].name, &st));
144 assertEqualInt(st.st_atime, files[3].atime_sec);
148 files[4].name, testprog);
151 assertEqualInt(0, stat(files[4].name, &st));
153 assertEqualInt(st.st_atime, files[4].atime_sec);