[LTP] [PATCH 4/4] syscalls/fanotify: New test for FAN_MODIFY_DIR

Cyril Hrubis chrubis@suse.cz
Wed Apr 29 18:02:22 CEST 2020


Hi!
> +	/*
> +	 * Create subdir and watch open events "on children" with name.
> +	 */
> +	if (mkdir(dname1, 0755) < 0) {
> +		tst_brk(TBROK | TERRNO,
> +				"mkdir('"DIR_NAME1"', 0755) failed");
> +	}

The rest of the tests are using SAFE_ macros to generate events, which
is basically the same these snippets do, but the code is a bit shorter.

Is there a reason not to use them in this test?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list