/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_read_pax_truncated.c | 34 char *buff2 = malloc(buff_size); in DEFINE_TEST() 168 memcpy(buff2, buff, buff_size); in DEFINE_TEST() 169 buff2[512] = '9'; in DEFINE_TEST() 170 buff2[513] = '9'; in DEFINE_TEST() 171 buff2[514] = 'A'; /* Non-digit in size. */ in DEFINE_TEST() 175 assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, buff2, used)); in DEFINE_TEST() 181 memcpy(buff2, buff, buff_size); in DEFINE_TEST() 182 buff2[512] = 'A'; /* First character not a digit. */ in DEFINE_TEST() 186 assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, buff2, used)); in DEFINE_TEST() 192 memcpy(buff2, buf in DEFINE_TEST() 35 char *buff2 = malloc(buff_size); DEFINE_TEST() local [all...] |
H A D | test_read_truncated.c | 28 static char buff2[100000]; 49 fill_with_pseudorandom_data(buff2, sizeof(buff2)); in DEFINE_TEST() 50 archive_entry_set_size(ae, sizeof(buff2)); in DEFINE_TEST() 53 assertEqualIntA(a, sizeof(buff2), archive_write_data(a, buff2, sizeof(buff2))); in DEFINE_TEST() 73 if (i < 512 + sizeof(buff2)) { in DEFINE_TEST() 74 assertEqualIntA(a, ARCHIVE_FATAL, archive_read_data(a, buff2, sizeof(buff2))); in DEFINE_TEST() 29 static char buff2[100000]; global() variable [all...] |
H A D | test_write_format_tar_sparse.c | 38 char *buff2; in test_1() 43 assert((buff2 = malloc(buff2_size)) != NULL); in test_1() 80 memset(buff2, 'a', buff2_size); in test_1() 86 archive_write_data(a, buff2, ws)); in test_1() 134 assertEqualInt(1024, archive_read_data(a, buff2, 1024)); in test_1() 137 assertEqualMem(buff2, buff3, 1024); in test_1() 141 assertEqualInt(1024, archive_read_data(a, buff2, 1024)); in test_1() 144 assertEqualMem(buff2, buff3, 1024); in test_1() 148 assertEqualInt(1024, archive_read_data(a, buff2, 1024)); in test_1() 151 assertEqualMem(buff2, buff in test_1() 39 char *buff2; test_1() local 182 char *buff2; test_2() local [all...] |
H A D | test_read_data_large.c | 41 static char buff2[10000000]; 65 fill_with_pseudorandom_data(buff2, sizeof(buff2)); in DEFINE_TEST() 66 archive_entry_set_size(ae, sizeof(buff2)); in DEFINE_TEST() 69 assertA((int)sizeof(buff2) == archive_write_data(a, buff2, sizeof(buff2))); in DEFINE_TEST() 82 assertEqualIntA(a, sizeof(buff2),archive_read_data(a, buff3, sizeof(buff3))); in DEFINE_TEST() 84 assertEqualMem(buff2, buff3, sizeof(buff3)); in DEFINE_TEST() 109 assertEqualMem(buff2, buff in DEFINE_TEST() 42 static char buff2[10000000]; global() variable [all...] |
H A D | test_write_format_ar.c | 31 static char buff2[64]; 122 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 123 assertEqualMem(buff2, "87654321", 8); in DEFINE_TEST() 128 assertEqualIntA(a, 7, archive_read_data(a, buff2, 11)); in DEFINE_TEST() 129 assertEqualMem(buff2, "7777777", 7); in DEFINE_TEST() 134 assertEqualIntA(a, 8, archive_read_data(a, buff2, 17)); in DEFINE_TEST() 135 assertEqualMem(buff2, "88877766", 8); in DEFINE_TEST() 178 assertEqualIntA(a, 5, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 179 assertEqualMem(buff2, "12345", 5); in DEFINE_TEST() 184 assertEqualIntA(a, 6, archive_read_data(a, buff2, 1 in DEFINE_TEST() 32 static char buff2[64]; global() variable [all...] |
H A D | test_write_format_iso9660_zisofs.c | 96 unsigned char buff2[1024]; in test_write_format_iso9660_zisofs_1() local 271 assertEqualIntA(a, 1024, archive_read_data(a, buff2, 1024)); in test_write_format_iso9660_zisofs_1() 272 assertEqualMem(buff2, nullb, 1024); in test_write_format_iso9660_zisofs_1() 285 assertEqualIntA(a, 1024, archive_read_data(a, buff2, 1024)); in test_write_format_iso9660_zisofs_1() 286 assertEqualMem(buff2, nullb, 1024); in test_write_format_iso9660_zisofs_1() 299 assertEqualIntA(a, 1024, archive_read_data(a, buff2, 1024)); in test_write_format_iso9660_zisofs_1() 300 assertEqualMem(buff2, nullb, 1024); in test_write_format_iso9660_zisofs_1() 313 assertEqualIntA(a, 1024, archive_read_data(a, buff2, 1024)); in test_write_format_iso9660_zisofs_1() 314 assertEqualMem(buff2, nullb, 1024); in test_write_format_iso9660_zisofs_1() 329 unsigned char buff2[1024]; in test_write_format_iso9660_zisofs_2() local [all …]
|
H A D | test_write_format_iso9660_boot.c | 87 static char buff2[1024]; variable 238 assertEqualIntA(a, 1024, archive_read_data(a, buff2, 1024)); in _test_write_format_iso9660_boot() 239 assertEqualMem(buff2, boot_catalog, 64); in _test_write_format_iso9660_boot() 253 assertEqualIntA(a, 1024, archive_read_data(a, buff2, 1024)); in _test_write_format_iso9660_boot() 255 assertEqualMem(buff2, nullb, 8); in _test_write_format_iso9660_boot() 256 assertEqualMem(buff2+8, info_table, 56); in _test_write_format_iso9660_boot() 257 assertEqualMem(buff2+64, nullb, 1024-64); in _test_write_format_iso9660_boot() 259 assertEqualMem(buff2, nullb, 1024); in _test_write_format_iso9660_boot()
|
H A D | test_write_format_pax.c | 27 static char buff2[64]; 163 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 164 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 186 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 187 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 219 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 220 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 243 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 244 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 28 static char buff2[64]; global() variable
|
H A D | test_write_format_iso9660.c | 28 static char buff2[64]; 398 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 399 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 436 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 437 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 451 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 452 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 466 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 467 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 481 assertEqualIntA(a, 8, archive_read_data(a, buff2, 1 in DEFINE_TEST() 29 static char buff2[64]; global() variable [all...] |
H A D | test_write_format_gnutar.c | 27 static char buff2[64]; 212 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 213 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 222 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 223 assertEqualMem(buff2, "abcdefgh", 8); in DEFINE_TEST() 28 static char buff2[64]; global() variable
|
H A D | test_write_filter_program.c | 29 static char buff2[64]; 116 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 117 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 30 static char buff2[64]; global() variable
|
H A D | test_write_format_tar.c | 28 static char buff2[64]; 109 assertEqualInt(8, archive_read_data(a, buff2, 10)); in DEFINE_TEST() 110 assertEqualMem(buff2, "12345678", 8); in DEFINE_TEST() 29 static char buff2[64]; global() variable
|
H A D | test_write_format_xar.c | 31 char buff2[64]; in test_xar() 192 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in test_xar() 193 assertEqualMem(buff2, "12345678", 8); in test_xar() 226 assertEqualIntA(a, 8, archive_read_data(a, buff2, 10)); in test_xar() 227 assertEqualMem(buff2, "abcdefgh", 8); in test_xar() 32 char buff2[64]; test_xar() local
|
H A D | README | 45 assert(strcmp(buff1, buff2) == 0);
|
H A D | main.c | 886 char buff2[1024]; in assertion_equal_file() local 901 n2 = (int)fread(buff2, 1, sizeof(buff2), f2); in assertion_equal_file() 909 if (memcmp(buff1, buff2, n1) != 0) in assertion_equal_file()
|
/freebsd/contrib/libarchive/tar/test/ |
H A D | test_copy.c | 119 char buff2[260]; in create_tree() local 148 snprintf(buff2, sizeof(buff2), "l/%s", filenames[i]); in create_tree() 149 assertMakeHardlink(buff2, buff); in create_tree() 152 snprintf(buff2, sizeof(buff2), "m/%s", filenames[i]); in create_tree() 153 assertMakeHardlink(buff2, buff); in create_tree() 158 snprintf(buff2, sizeof(buff2), "../f/%s", filenames[i]); in create_tree() 159 failure("buff=\"%s\" buff2=\"%s\"", buff, buff2); in create_tree() 160 assertMakeSymlink(buff, buff2, 0); in create_tree()
|
/freebsd/contrib/libarchive/test_utils/ |
H A D | test_main.c | 1049 char buff2[1024]; in assertion_equal_file() local 1064 n2 = (int)fread(buff2, 1, sizeof(buff2), f2); in assertion_equal_file() 1072 if (memcmp(buff1, buff2, n1) != 0) in assertion_equal_file()
|
/freebsd/usr.sbin/ppp/ |
H A D | command.c | 1140 char buff2[LINE_LEN-offset]; in command_Expand_Interpret() local 1142 InterpretArg(buff, buff2); in command_Expand_Interpret() 1143 strncpy(buff, buff2, LINE_LEN - offset - 1); in command_Expand_Interpret()
|