From: Richard Jones Date: Sat, 17 Apr 2010 11:38:18 +0000 (+0100) Subject: Add a build test for the 'umask' command. X-Git-Tag: 1.3.4~17 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=116d497c68c2e57f6e92abf8834112a794a145f0;p=libguestfs.git Add a build test for the 'umask' command. --- diff --git a/src/generator.ml b/src/generator.ml index 87855e7..b97584a 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -3018,9 +3018,8 @@ mode C and device major/minor C and C. It is just a convenient wrapper around C."); ("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