Home
last modified time | relevance | path

Searched refs:temp_absolute_file_name (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/libarchive/tar/test/
H A Dtest_option_P.c27 …char *temp_absolute_file_name = calloc(1, temp_absolute_file_name_length + 1); // +1 for null char… in DEFINE_TEST() local
28 …assertEqualInt(snprintf(temp_absolute_file_name, temp_absolute_file_name_length + 1, "%s%s", testw… in DEFINE_TEST()
36 for (char *p = temp_absolute_file_name; *p != '\0'; p++) in DEFINE_TEST()
45 assertMakeFile(temp_absolute_file_name, 0644, sample_data); in DEFINE_TEST()
49 r = systemf("%s --absolute-paths -cf test.tar %s", testprog, temp_absolute_file_name); in DEFINE_TEST()
51 r = systemf("%s --absolute-paths -cf test.tar \"%s\"", testprog, temp_absolute_file_name); in DEFINE_TEST()
55 UNLINK(temp_absolute_file_name); in DEFINE_TEST()
60 assertFileNotExists(temp_absolute_file_name); in DEFINE_TEST()
64 assertFileExists(temp_absolute_file_name + 3); // Skip the drive letter, colon and slash. in DEFINE_TEST()
65 UNLINK(temp_absolute_file_name + 3); in DEFINE_TEST()
[all …]
/freebsd/contrib/libarchive/cpio/test/
H A Dtest_extract_cpio_absolute_paths.c27 …char *temp_absolute_file_name = calloc(1, temp_absolute_file_name_length + 1); // +1 for null char… in DEFINE_TEST() local
28 …assertEqualInt(snprintf(temp_absolute_file_name, temp_absolute_file_name_length + 1, "%s%s", testw… in DEFINE_TEST()
33 assertMakeFile(temp_absolute_file_name, 0644, sample_data); in DEFINE_TEST()
36 assertMakeFile("filelist", 0644, temp_absolute_file_name); in DEFINE_TEST()
41 UNLINK(temp_absolute_file_name); in DEFINE_TEST()
46 assertFileNotExists(temp_absolute_file_name); in DEFINE_TEST()
47 UNLINK(temp_absolute_file_name); // Cleanup just in case. in DEFINE_TEST()
52 assertFileExists(temp_absolute_file_name); in DEFINE_TEST()
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_secure_noabsolutepaths.c42 …char *temp_absolute_file_name = calloc(1, temp_absolute_file_name_length + 1); // +1 for null char… in DEFINE_TEST() local
43 …assertEqualInt(snprintf(temp_absolute_file_name, temp_absolute_file_name_length + 1, "%s%s", testw… in DEFINE_TEST()
48 for (char *p = temp_absolute_file_name; *p != '\0'; p++) in DEFINE_TEST()
53 archive_entry_copy_pathname(ae, temp_absolute_file_name); in DEFINE_TEST()
69 assertEqualString(temp_absolute_file_name, archive_entry_pathname(ae)); in DEFINE_TEST()
76 UNLINK(temp_absolute_file_name); in DEFINE_TEST()