summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-04-17 12:38:18 +0100
committerRichard Jones <rjones@redhat.com>2010-04-17 12:38:18 +0100
commit116d497c68c2e57f6e92abf8834112a794a145f0 (patch)
tree69e6b90bc867b983c5f6bc9834dadec2b61081e0
parent4f376dbafb78ee9b5ad1652360472a14de64753d (diff)
downloadlibguestfs-116d497c68c2e57f6e92abf8834112a794a145f0.tar.gz
libguestfs-116d497c68c2e57f6e92abf8834112a794a145f0.tar.xz
libguestfs-116d497c68c2e57f6e92abf8834112a794a145f0.zip
Add a build test for the 'umask' command.
-rwxr-xr-xsrc/generator.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 87855e7d..b97584ab 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -3018,9 +3018,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, [FishOutput FishOutputOctal],
- [], (* 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