[LTP] [PATCH 3/3] syscalls/umask03: Cleanup && Convert to new API

Cyril Hrubis chrubis@suse.cz
Tue Nov 1 16:05:08 CET 2016


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


More information about the ltp mailing list