[LTP] [PATCH v3] getcwd01: Use syscall directly check invalid argument
Petr Vorel
pvorel@suse.cz
Tue Nov 28 11:53:53 CET 2023
Hi,
> +++ b/testcases/kernel/syscalls/getcwd/getcwd01.c
> @@ -14,8 +14,8 @@
> *
> * Expected Result:
> * 1) getcwd(2) should return NULL and set errno to EFAULT.
> - * 2) getcwd(2) should return NULL and set errno to ENOMEM.
> - * 3) getcwd(2) should return NULL and set errno to EINVAL.
> + * 2) getcwd(2) should return NULL and set errno to EFAULT.
> + * 3) getcwd(2) should return NULL and set errno to ERANGE.
NOTE: actually before this change we tested getcwd(3), 2 is for raw syscalls, 3
for libc wrappers.
Kind regards,
Petr
More information about the ltp
mailing list