From: Viresh Kumar <viresh.kumar@linaro.org>
To: ltp@lists.linux.it
Subject: [LTP] [RFC 0/3] syscalls: Rearrange sigwait syscall tests
Date: Fri, 10 Jul 2020 13:31:45 +0530 [thread overview]
Message-ID: <cover.1594367611.git.viresh.kumar@linaro.org> (raw)
Hi Cyril,
As suggested by you I have tried to rearrange stuff here and having some
difficulty in getting rid of the last few build and runtime errors. And
so sending this as RFC.
Problem 1: Build failure.
---------
This fails with the error:
ltp/libs/libltpsigwait/sigwaitinfo01.c:53: undefined reference to `create_sig_proc'
create_sig_proc() is defined in lib/ and I am trying to use it in libs/.
Somehow linking is failing here as there is no local user of the routine
create_sig_proc() within lib/ directory. If I create a dummy user
(https://pastebin.com/LiNukt1n) there, then the build passes.
I don't know how to properly fix this.
Problem 2: Runtime breakage.
---------
If I build it using the earlier hack then at runtime I have started to
get following error while running the tests now, right after the first
test passes:
tst_test.c:362: BROK: Child (14595) killed by signal SIGTERM
I don't really understand why this has started to come up now, while it
didn't happen earlier at all.
This is rebased over the earlier series which is under review
(specifically the following patch,
[PATCH V7 10/19] syscalls/rt_sigtimedwait: Add support for time64 tests).
--
viresh
Viresh Kumar (3):
syscalls: sigwaitinfo: Suppress all warnings around unused parameter
syscalls: sigwaitinfo: Remove SUCCEED_OR_DIE() macro
syscalls: sigwait: Separate out code to relevant folders
include/libsigwait.h | 45 ++
libs/libltpsigwait/Makefile | 11 +
libs/libltpsigwait/sigwait.c | 428 +++++++++++++++
.../kernel/syscalls/rt_sigtimedwait/Makefile | 10 +-
.../rt_sigtimedwait/rt_sigtimedwait01.c | 78 +++
.../kernel/syscalls/sigtimedwait/Makefile | 9 +-
.../syscalls/sigtimedwait/sigtimedwait01.c | 37 ++
testcases/kernel/syscalls/sigwait/Makefile | 9 +-
testcases/kernel/syscalls/sigwait/sigwait01.c | 37 ++
.../kernel/syscalls/sigwaitinfo/Makefile | 4 +-
.../syscalls/sigwaitinfo/sigwaitinfo01.c | 511 +-----------------
11 files changed, 662 insertions(+), 517 deletions(-)
create mode 100644 include/libsigwait.h
create mode 100644 libs/libltpsigwait/Makefile
create mode 100644 libs/libltpsigwait/sigwait.c
create mode 100644 testcases/kernel/syscalls/rt_sigtimedwait/rt_sigtimedwait01.c
create mode 100644 testcases/kernel/syscalls/sigtimedwait/sigtimedwait01.c
create mode 100644 testcases/kernel/syscalls/sigwait/sigwait01.c
--
2.25.0.rc1.19.g042ed3e048af
next reply other threads:[~2020-07-10 8:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-10 8:01 Viresh Kumar [this message]
2020-07-10 8:01 ` [LTP] [RFC 1/3] syscalls: sigwaitinfo: Suppress all warnings around unused parameter Viresh Kumar
2020-07-10 8:01 ` [LTP] [RFC 2/3] syscalls: sigwaitinfo: Remove SUCCEED_OR_DIE() macro Viresh Kumar
2020-07-10 8:01 ` [LTP] [RFC 3/3] syscalls: sigwait: Separate out code to relevant folders Viresh Kumar
2020-07-20 10:15 ` [LTP] [RFC 0/3] syscalls: Rearrange sigwait syscall tests Viresh Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1594367611.git.viresh.kumar@linaro.org \
--to=viresh.kumar@linaro.org \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox