diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-01-06 23:16:46 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-01-06 23:16:46 +0000 |
commit | e15d3d08c546918b4add4d7fa398f8fa66e05192 (patch) | |
tree | 207be8954317553e9af294750598b165cedc24d8 | |
parent | 4daaa151c5abbfbc7c264e2a07ea07ff195061d8 (diff) |
Formerly fstests.c.~11~
-rw-r--r-- | fstests/fstests.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/fstests/fstests.c b/fstests/fstests.c index d4c79120..af805f77 100644 --- a/fstests/fstests.c +++ b/fstests/fstests.c @@ -1,5 +1,5 @@ /* Test filesystem behavior - Copyright (C) 1993 Free Software Foundation + Copyright (C) 1993, 1994 Free Software Foundation This file is part of the GNU Hurd. @@ -43,7 +43,7 @@ main () root = _hurd_ports[INIT_PORT_CRDIR].port; stdout = mach_open_devstream (_hurd_init_dtable[1], "w"); -#if 0 +#if 1 if ((err = dir_unlink (root, "CREATED")) && err != ENOENT) printf ("Error on unlink: %d\n", err); else if (err = dir_pathtrans (root, "CREATED", O_WRITE | O_CREAT, 0666, @@ -55,13 +55,18 @@ main () printf ("Short write: %d\n", written); else if (err = file_syncfs (filetowrite, 1, 0)) printf ("Error on sync: %d\n", err); -#endif +#else - dir_unlink (root, "newdir"); - dir_rmdir (root, "newdir"); + unlink ("/newdir"); + printf ("errno: %d\n") + dir_unlink (root, "newdir"); /* unlink ("/newdir") */ + dir_rmdir (root, "newdir"); /* rmdir */ dir_mkdir (root, "newdir", 0666); + dir_rename (root, "README", root, "here it is now"); file_syncfs (root, 1, 0); +#endif + printf ("All done.\n"); malloc (0); } |