From 116d497c68c2e57f6e92abf8834112a794a145f0 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. --- src/generator.ml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 1.8.3.1