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.2.3~17 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=34cbec703e9dcbb29ecb4f9fa6267db9427e755b;p=libguestfs.git Add a build test for the 'umask' command. (cherry picked from commit 116d497c68c2e57f6e92abf8834112a794a145f0) --- diff --git a/src/generator.ml b/src/generator.ml index f95b11f..66b2dac 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -3006,9 +3006,8 @@ mode C and device major/minor C and C. It is just a convenient wrapper around C."); ("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