Hi!
> sanity checking after calling pathconf added
> 
> Signed-off-by: Maninder Singh <maninder...@samsung.com>
> Reviewed-by: Yogesh Narayan Gaur <yn.g...@samsung.com>
> ---
>  .../conformance/interfaces/shm_unlink/10-1.c       |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git 
> a/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-1.c 
> b/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-1.c
> index 768863c..20e5bef 100644
> --- a/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-1.c
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/shm_unlink/10-1.c
> @@ -27,6 +27,11 @@ int main(void)
>       char *shm_name;
>  
>       name_max = pathconf("/", _PC_NAME_MAX);
> +
> +     if (name_max == -1) {
> +             perror("An error occurs when calling pathconf()");

I've shortened this error message to "pathconf() failed" here and in
10-2.c and pushed both patches, thanks.

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to