From 34cbec703e9dcbb29ecb4f9fa6267db9427e755b Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Sat, 17 Apr 2010 12:38:18 +0100 Subject: [PATCH] Add a build test for the 'umask' command. (cherry picked from commit 116d497c68c2e57f6e92abf8834112a794a145f0) --- src/generator.ml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 1.8.3.1