diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-06-13 03:40:02 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-06-13 03:40:02 +0000 |
commit | 505cd783b85e1e290dcbd38917fc7d2bbcd901df (patch) | |
tree | 0729e16a4e25ff022641d522870fc7f322ebd01b | |
parent | e4d94b2a80a77116aad2cffea36fcf5ef9518336 (diff) | |
download | FreeBSD-src-505cd783b85e1e290dcbd38917fc7d2bbcd901df.zip FreeBSD-src-505cd783b85e1e290dcbd38917fc7d2bbcd901df.tar.gz |
Make 'ar' write test a tad more portable.
-rw-r--r-- | lib/libarchive/test/test_write_format_ar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/test/test_write_format_ar.c b/lib/libarchive/test/test_write_format_ar.c index 1ee4a66..3f7e698 100644 --- a/lib/libarchive/test/test_write_format_ar.c +++ b/lib/libarchive/test/test_write_format_ar.c @@ -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)); |