Hi! > sanity checking after calling pathconf added > > Signed-off-by: Maninder Singh <[email protected]> > Reviewed-by: Yogesh Narayan Gaur <[email protected]> > --- > .../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 [email protected] ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
