summaryrefslogtreecommitdiff
path: root/fstests/fstests.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1993-12-16 03:32:55 +0000
committerMichael I. Bushnell <mib@gnu.org>1993-12-16 03:32:55 +0000
commit926c0c68a356cb9b1af42f2128f83052e2895c38 (patch)
tree0ce9fe5ca9b42eb5cb31c8f0b97c4a59ddcd9e67 /fstests/fstests.c
parent6178f5d8e9de1bbdd2e270a2e187a50ca0561174 (diff)
Formerly fstests.c.~6~
Diffstat (limited to 'fstests/fstests.c')
-rw-r--r--fstests/fstests.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fstests/fstests.c b/fstests/fstests.c
index 05d3af10..f315f26e 100644
--- a/fstests/fstests.c
+++ b/fstests/fstests.c
@@ -42,15 +42,15 @@ main ()
root = _hurd_ports[INIT_PORT_CRDIR].port;
stdout = mach_open_devstream (_hurd_init_dtable[1], "w");
- err = dir_pathtrans (root, "CREATED", O_WRITE | O_CREAT, 0666, &retry,
- pathbuf, &filetowrite);
-
- if (err)
+ if (err = dir_unlink (root, "CREATED"))
+ printf ("Error on unlink: %d\n", err);
+ else if (err = dir_pathtrans (root, "CREATED", O_WRITE | O_CREAT, 0666,
+ &retry, pathbuf, &filetowrite))
printf ("Error on pathtrans: %d\n", err);
else if (err = io_write (filetowrite, string, strlen (string), -1, &written))
printf ("Error on write: %d\n", err);
else if (written != strlen (string))
- printf ("Short write: %d\n");
+ printf ("Short write: %d\n", written);
else if (err = file_syncfs (filetowrite, 1, 0))
printf ("Error on sync: %d\n", err);