Skip to contentSkip to conversation

Rewrite getcontext01.c test using new LTP API

PATCH Superseded Andrea Cervesato 2 participants 2 messages Mar 3, 2022 – Mar 9, 2022

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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.

---
 configure.ac                                  |  1 +
 .../kernel/syscalls/getcontext/getcontext01.c | 93 ++++---------------
 2 files changed, 20 insertions(+), 74 deletions(-)
configure.ac +1 -0
index 49499704e..9b6d01f54 100644
@@ -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
#1 lore raw

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