[LTP] [PATCH v1] Add rmdir04 test

Andrea Cervesato andrea.cervesato@suse.com
Mon Feb 19 16:57:29 CET 2024


Hi,
please don't consider this patch anymore.

On 2/2/24 18:14, Cyril Hrubis wrote:
> Hi!
>> +#include "tst_test.h"
>> +
>> +static void run(void)
>> +{
>> +	char *symname = "my_symlink0";
>> +
>> +	SAFE_SYMLINK(tst_get_tmpdir(), symname);
>> +	TST_EXP_FAIL(rmdir(symname), ENOTDIR);
>> +
>> +	SAFE_UNLINK(symname);
>> +}
> Here as well, easily added to rmdir02 along with a few more different
> ENOTDIR cases.
>
Andrea



More information about the ltp mailing list