[LTP] [PATCH 1/3] syscalls/tgkill01: add new test

Cyril Hrubis chrubis@suse.cz
Thu Mar 14 15:04:00 CET 2019


Hi!
> +static void run(void)
> +{
> +	int i;
> +
> +	for (i = 0; i < n_threads; i++)
> +		threads[i].tid = -1;
> +
> +	test_running = 1;
> +	for (i = 0; i < n_threads; i++)
> +		start_thread(&threads[i]);

Just a minor nit these threads should actully be started in the test
setup() since we stop them in the test cleanup(), otherwise the test
breaks with the looping -i option.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list