Rewrite getcontext01.c test using new LTP API
PATCH v2 1/1 Rewrite getcontext01.c test using new LTP API
Removed old LTP API from getcontext01.c test and check if getcontext is present in the current system. The check is useful in those systems where musl is used by default.
Signed-off-by Andrea Cervesato <[email protected]>
--- configure.ac | 1 + .../kernel/syscalls/getcontext/getcontext01.c | 93 ++++--------------- 2 files changed, 20 insertions(+), 74 deletions(-)
configure.ac +1 -0
@@ -97,6 +97,7 @@ AC_CHECK_FUNCS_ONCE([ \ fspick \ fstatat \ getauxval \ + getcontext \ getdents \ getdents64 \ io_pgetevents \
testcases/kernel/syscalls/getcontext/getcontext01.c +19 -74
108 lines not on this page · raw message
Signature · 5 lines
2.35.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Pushed, thanks.
I've also added another patch on the top that actually tries to use the structure initialized with getcontext() for a setcontext() call, which makes the test much more useful.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp