[LTP] [PATCH v2 2/3] syscalls/getcwd03.c: cleanup && convert to new API

Cyril Hrubis chrubis@suse.cz
Wed Jan 18 15:24:05 CET 2017


Hi!
> +	errno = 0;
> +	res2 = getcwd(NULL, 0);
> +	TEST_ERRNO = errno;

I've simplified this part not to use the TEST_ERRNO.

> +	if (!res2) {
> +		tst_res(TFAIL | TTERRNO, "getcwd() failed to get "
> +			"working directory of a symbolic link");
> +		goto end;
> +	}
> +

And also removed the test cleanup() since the temporary directory is
removed recursively at the test end.

And pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list