[LTP] [PATCH v1] Add rmdir04 test

Cyril Hrubis chrubis@suse.cz
Fri Feb 2 18:14:40 CET 2024


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.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list