summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/test/test_write_disk_failures.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2009-12-30 05:59:21 +0000
committerkientzle <kientzle@FreeBSD.org>2009-12-30 05:59:21 +0000
commitfa94194ff849f6933fedb15396e96731eb2c4157 (patch)
treea878f899f5526c6be691b6194342f1ddd9a9fdd9 /lib/libarchive/test/test_write_disk_failures.c
parentc6d0b4dd8b2ab36f3e73a6ad81509d14d32bafae (diff)
downloadFreeBSD-src-fa94194ff849f6933fedb15396e96731eb2c4157.zip
FreeBSD-src-fa94194ff849f6933fedb15396e96731eb2c4157.tar.gz
A raft of test changes and improvements from the Googlecode repository.
In particular, this includes tests for the new features I've merged over the last few days.
Diffstat (limited to 'lib/libarchive/test/test_write_disk_failures.c')
-rw-r--r--lib/libarchive/test/test_write_disk_failures.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/test/test_write_disk_failures.c b/lib/libarchive/test/test_write_disk_failures.c
index 1befbac..f74c947 100644
--- a/lib/libarchive/test/test_write_disk_failures.c
+++ b/lib/libarchive/test/test_write_disk_failures.c
@@ -42,13 +42,13 @@ DEFINE_TEST(test_write_disk_failures)
int fd;
/* Force the umask to something predictable. */
- umask(UMASK);
+ assertUmask(UMASK);
/* A directory that we can't write to. */
- assertEqualInt(0, mkdir("dir", 0555));
+ assertMakeDir("dir", 0555);
/* Can we? */
- fd = open("dir/testfile", O_WRONLY | O_CREAT, 0777);
+ fd = open("dir/testfile", O_WRONLY | O_CREAT | O_BINARY, 0777);
if (fd >= 0) {
/* Apparently, we can, so the test below won't work. */
close(fd);
OpenPOWER on IntegriCloud