[LTP] [PATCH v2 1/3] syscalls: new test writev07

Cyril Hrubis chrubis@suse.cz
Mon Oct 10 17:54:07 CEST 2016


Hi!
> +	/* file content matches written bytes */
> +	SAFE_LSEEK(fd, initial_file_offset, SEEK_SET);
> +	SAFE_READ(1, fd, tmp, TEST_RETURN);
> +	if (memcmp(tmp, wr_iovec[0].iov_base, TEST_RETURN) == 0) {
> +		tst_res(TPASS, "file has expected content");
> +	} else {
> +		tst_res(TFAIL, "file has unexpected content");
> +		tst_res(TINFO, "expected:");
                     ^
		     This TINFO looks redundant now.

Otherwise it looks good, acked.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list