From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Date: Tue, 1 Nov 2016 16:05:08 +0100 Subject: [LTP] [PATCH 3/3] syscalls/umask03: Cleanup && Convert to new API In-Reply-To: <58181967.9070700@cn.fujitsu.com> References: <1477882478-30693-1-git-send-email-fenggw-fnst@cn.fujitsu.com> <1477882478-30693-3-git-send-email-fenggw-fnst@cn.fujitsu.com> <20161031114002.GI30590@rei.lan> <58181967.9070700@cn.fujitsu.com> Message-ID: <20161101150508.GA5787@rei.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > > Hmm, so this test is just the same as umask02 but tries to create the > > file as well. > > > > What about we remove umask01.c and umask02.c and rename umask03.c to > > umask01.c? > > > > It's not like umask01.c or umask02.c adds any more value since umask03.c > > is superset of these. > > > > I think it's a little bit different between umask02 and umask03, manual page > says that umask(2) returns the previous value of the mask, and this is only > checked in umask02. > > So what about we just remove umask01.c and rename umask02.c and umask03.c to > umask01.c and umask02.c? Hmm, right, the umask03 is not checking the return value. But still, it's trivial enough to both check the return value and to try to create the file in one test. There is no real need to have two when thing could be easily done in just one. -- Cyril Hrubis chrubis@suse.cz