Make 'ar' write test a tad more portable.
This commit is contained in:
parent
e4d94b2a80
commit
505cd783b8
@ -68,7 +68,7 @@ DEFINE_TEST(test_write_format_ar)
|
||||
|
||||
assert((ae = archive_entry_new()) != NULL);
|
||||
archive_entry_copy_pathname(ae, "ggghhhjjjrrrttt.o");
|
||||
archive_entry_set_mode(ae, S_IFREG | 0755);
|
||||
archive_entry_set_filetype(ae, AE_IFREG);
|
||||
archive_entry_set_size(ae, 7);
|
||||
assertA(0 == archive_write_header(a, ae));
|
||||
assertA(7 == archive_write_data(a, "7777777", 7));
|
||||
@ -158,7 +158,7 @@ DEFINE_TEST(test_write_format_ar)
|
||||
/* write a entry need long name extension */
|
||||
assert((ae = archive_entry_new()) != NULL);
|
||||
archive_entry_copy_pathname(ae, "ttttyyyyuuuuiiii.o");
|
||||
archive_entry_set_mode(ae, S_IFREG | 0755);
|
||||
archive_entry_set_filetype(ae, AE_IFREG);
|
||||
archive_entry_set_size(ae, 5);
|
||||
assertA(0 == archive_write_header(a, ae));
|
||||
assertA(5 == archive_write_data(a, "12345", 7));
|
||||
@ -167,7 +167,7 @@ DEFINE_TEST(test_write_format_ar)
|
||||
/* write a entry with a short name */
|
||||
assert((ae = archive_entry_new()) != NULL);
|
||||
archive_entry_copy_pathname(ae, "ttyy.o");
|
||||
archive_entry_set_mode(ae, S_IFREG | 0755);
|
||||
archive_entry_set_filetype(ae, AE_IFREG);
|
||||
archive_entry_set_size(ae, 6);
|
||||
assertA(0 == archive_write_header(a, ae));
|
||||
assertA(6 == archive_write_data(a, "555555", 7));
|
||||
|
Loading…
x
Reference in New Issue
Block a user