[LTP] [PATCH v1] Add mkdir10 test

Andrea Cervesato andrea.cervesato@suse.com
Wed Feb 7 13:57:36 CET 2024


Hi,

On 2/2/24 18:10, Cyril Hrubis wrote:
> Hi!
>> +static void run(void)
>> +{
>> +	char *symname = "my_symlink0";
>> +
>> +	SAFE_SYMLINK(tst_get_tmpdir(), symname);
>> +	TST_EXP_FAIL(mkdir(symname, 0777), EEXIST);
> This can be easily added into mkdir03.c as well as a few more different
> cases (we can't overwrite named pipe, directory, device node, etc.) if
> we wanted to.
>
I would prefer to keep mkdir10 and add more cases rather than 
complicating mkdir01 that seems more focusing on checking multiple errors.

Andrea Cervesato



More information about the ltp mailing list