[LTP] [PATCH v2] getcwd01: Implement .test_variants
Cyril Hrubis
chrubis@suse.cz
Wed Jan 3 09:21:25 CET 2024
Hi!
> @Li @Cyril: are you ok to test libc getcwd() wrapper implementations on NULL
> buffer in getcwd01.c? Or we just skip NULL buffer test on all libc?
> I would be ok to test it, because change in the implementation can influence
> lots of user space software, although glibc or any other libc can obviously
> change it's behavior.
I guess that the easiest solution is to run the test in a child and pass
the test both on EFAULT and child being killed by SIGSEGV. Any special
cases and ifdefs are assuming something that is not promised and will
have to be changed sooner or later.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list