[LTP] [PATCH 2/2] syscalls/read01.c: Cleanup && convert to new API.

Cyril Hrubis chrubis@suse.cz
Thu Mar 30 11:28:07 CEST 2017


Hi!
> +	memset(buf, '*', SIZE);
> +	for (i = 0; i < SIZE; i++) {
> +		if (buf[i] != '*') {
> +			tst_brk(TBROK, "buf setup failed: "
> +				"expected * at buf[%d], found %c", i, buf[i]);
>  		}
>  	}

I've removed this dubious check that just checks if memset() does it's
job and pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list