Lines Matching refs:SCRATCH_DIR

834 #define SCRATCH_DIR "/data/backup_helper_test/"  macro
914 const char* filename = SCRATCH_DIR "backup_helper_test_empty.snap"; in backup_helper_test_empty()
916 system("rm -r " SCRATCH_DIR); in backup_helper_test_empty()
917 mkdir(SCRATCH_DIR, 0777); in backup_helper_test_empty()
973 const char* filename = SCRATCH_DIR "backup_helper_test_four.snap"; in backup_helper_test_four()
975 system("rm -r " SCRATCH_DIR); in backup_helper_test_four()
976 mkdir(SCRATCH_DIR, 0777); in backup_helper_test_four()
1174 const char* filename = SCRATCH_DIR "data_writer.data"; in backup_helper_test_data_writer()
1176 system("rm -r " SCRATCH_DIR); in backup_helper_test_data_writer()
1177 mkdir(SCRATCH_DIR, 0777); in backup_helper_test_data_writer()
1178 mkdir(SCRATCH_DIR "data", 0777); in backup_helper_test_data_writer()
1279 const char* filename = SCRATCH_DIR "data_reader.data"; in backup_helper_test_data_reader()
1281 system("rm -r " SCRATCH_DIR); in backup_helper_test_data_reader()
1282 mkdir(SCRATCH_DIR, 0777); in backup_helper_test_data_reader()
1283 mkdir(SCRATCH_DIR "data", 0777); in backup_helper_test_data_reader()
1361 system("rm -r " SCRATCH_DIR); in backup_helper_test_files()
1362 mkdir(SCRATCH_DIR, 0777); in backup_helper_test_files()
1363 mkdir(SCRATCH_DIR "data", 0777); in backup_helper_test_files()
1365 write_text_file(SCRATCH_DIR "data/b", "b\nbb\n"); in backup_helper_test_files()
1366 write_text_file(SCRATCH_DIR "data/c", "c\ncc\n"); in backup_helper_test_files()
1367 write_text_file(SCRATCH_DIR "data/d", "d\ndd\n"); in backup_helper_test_files()
1368 write_text_file(SCRATCH_DIR "data/e", "e\nee\n"); in backup_helper_test_files()
1369 write_text_file(SCRATCH_DIR "data/f", "f\nff\n"); in backup_helper_test_files()
1370 write_text_file(SCRATCH_DIR "data/h", "h\nhh\n"); in backup_helper_test_files()
1373 SCRATCH_DIR "data/b", in backup_helper_test_files()
1374 SCRATCH_DIR "data/c", in backup_helper_test_files()
1375 SCRATCH_DIR "data/d", in backup_helper_test_files()
1376 SCRATCH_DIR "data/e", in backup_helper_test_files()
1377 SCRATCH_DIR "data/f" in backup_helper_test_files()
1388 dataStreamFD = creat(SCRATCH_DIR "1.data", 0666); in backup_helper_test_files()
1394 newSnapshotFD = creat(SCRATCH_DIR "before.snap", 0666); in backup_helper_test_files()
1417 err = get_mod_time(SCRATCH_DIR "data/d", d_times); in backup_helper_test_files()
1418 err |= get_mod_time(SCRATCH_DIR "data/e", e_times); in backup_helper_test_files()
1423 write_text_file(SCRATCH_DIR "data/a", "a\naa\n"); in backup_helper_test_files()
1424 unlink(SCRATCH_DIR "data/c"); in backup_helper_test_files()
1425 write_text_file(SCRATCH_DIR "data/c", "c\ncc\n"); in backup_helper_test_files()
1426 write_text_file(SCRATCH_DIR "data/d", "dd\ndd\n"); in backup_helper_test_files()
1427 utimes(SCRATCH_DIR "data/d", d_times); in backup_helper_test_files()
1428 write_text_file(SCRATCH_DIR "data/e", "z\nzz\n"); in backup_helper_test_files()
1429 utimes(SCRATCH_DIR "data/e", e_times); in backup_helper_test_files()
1430 write_text_file(SCRATCH_DIR "data/g", "g\ngg\n"); in backup_helper_test_files()
1431 unlink(SCRATCH_DIR "data/f"); in backup_helper_test_files()
1434 SCRATCH_DIR "data/a", // added in backup_helper_test_files()
1435 SCRATCH_DIR "data/b", // same in backup_helper_test_files()
1436 SCRATCH_DIR "data/c", // different mod time in backup_helper_test_files()
1437 SCRATCH_DIR "data/d", // different size (same mod time) in backup_helper_test_files()
1438 SCRATCH_DIR "data/e", // different contents (same mod time, same size) in backup_helper_test_files()
1439 SCRATCH_DIR "data/g" // added in backup_helper_test_files()
1451 oldSnapshotFD = open(SCRATCH_DIR "before.snap", O_RDONLY); in backup_helper_test_files()
1457 dataStreamFD = creat(SCRATCH_DIR "2.data", 0666); in backup_helper_test_files()
1463 newSnapshotFD = creat(SCRATCH_DIR "after.snap", 0666); in backup_helper_test_files()
1492 system("rm -r " SCRATCH_DIR); in backup_helper_test_null_base()
1493 mkdir(SCRATCH_DIR, 0777); in backup_helper_test_null_base()
1494 mkdir(SCRATCH_DIR "data", 0777); in backup_helper_test_null_base()
1496 write_text_file(SCRATCH_DIR "data/a", "a\naa\n"); in backup_helper_test_null_base()
1499 SCRATCH_DIR "data/a", in backup_helper_test_null_base()
1506 dataStreamFD = creat(SCRATCH_DIR "null_base.data", 0666); in backup_helper_test_null_base()
1512 newSnapshotFD = creat(SCRATCH_DIR "null_base.snap", 0666); in backup_helper_test_null_base()
1540 system("rm -r " SCRATCH_DIR); in backup_helper_test_missing_file()
1541 mkdir(SCRATCH_DIR, 0777); in backup_helper_test_missing_file()
1542 mkdir(SCRATCH_DIR "data", 0777); in backup_helper_test_missing_file()
1544 write_text_file(SCRATCH_DIR "data/b", "b\nbb\n"); in backup_helper_test_missing_file()
1547 SCRATCH_DIR "data/a", in backup_helper_test_missing_file()
1548 SCRATCH_DIR "data/b", in backup_helper_test_missing_file()
1549 SCRATCH_DIR "data/c", in backup_helper_test_missing_file()
1558 dataStreamFD = creat(SCRATCH_DIR "null_base.data", 0666); in backup_helper_test_missing_file()
1564 newSnapshotFD = creat(SCRATCH_DIR "null_base.snap", 0666); in backup_helper_test_missing_file()