Add a build test for the 'umask' command.
authorRichard Jones <rjones@redhat.com>
Sat, 17 Apr 2010 11:38:18 +0000 (12:38 +0100)
committerRichard Jones <rjones@redhat.com>
Tue, 20 Apr 2010 07:42:33 +0000 (08:42 +0100)
(cherry picked from commit 116d497c68c2e57f6e92abf8834112a794a145f0)

src/generator.ml

index f95b11f..66b2dac 100755 (executable)
@@ -3006,9 +3006,8 @@ mode C<mode> and device major/minor C<devmajor> and C<devminor>.
 It is just a convenient wrapper around C<guestfs_mknod>.");
 
   ("umask", (RInt "oldmask", [Int "mask"]), 137, [],
 It is just a convenient wrapper around C<guestfs_mknod>.");
 
   ("umask", (RInt "oldmask", [Int "mask"]), 137, [],
-   [], (* XXX umask is one of those stateful things that we should
-        * reset between each test.
-        *)
+   [InitEmpty, Always, TestOutputInt (
+      [["umask"; "0o22"]], 0o22)],
    "set file mode creation mask (umask)",
    "\
 This function sets the mask used for creating new files and
    "set file mode creation mask (umask)",
    "\
 This function sets the mask used for creating new files and