From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/3] syscalls/mq_timed{send|receive}: Add test cases for bad address
Date: Wed, 5 Aug 2020 17:22:44 +0200 [thread overview]
Message-ID: <20200805152244.GC631@yuki.lan> (raw)
In-Reply-To: <20200804144045.18875-2-Filip.Bozuta@syrmia.com>
Hi!
> This patch introduces test cases for already existing
> tests for syscalls 'mq_timedsend()' and 'mq_timedreceive()'
> (mq_timedsend01, mq_timedreceive01). These test cases are for
> situations when bad addresses are passed for arguments 'msg_ptr'
> and 'abs_timeout' in which case errno 'EFAULT' is expected to be set.
> Value '(void *)1' is used as a bad address for these arguments.
>
> Implementation notes:
>
> Structure 'struct test_case' from file 'mq_timed.h' was modified
> with addition of two fields (bad_msg_addr and bad_ts_addr) which
> represent indicators for the implemented testcases. They are set
> to 1 for the new added test cases. These fileds are checked before
> running the test to see if bad address value '(void *)1' should be
> passed for the above mentioned arguments.
This is pretty clear from the patch itself. I'm not sure if there is
any added value in writing paragraphs that describe the obvious like
this one.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2020-08-05 15:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-04 14:40 [LTP] [PATCH 0/3] testcases/kernel/syscalls: Adding new testcases for existing tests Filip Bozuta
2020-08-04 14:40 ` [LTP] [PATCH 1/3] syscalls/mq_timed{send|receive}: Add test cases for bad address Filip Bozuta
2020-08-05 15:22 ` Cyril Hrubis [this message]
2020-08-04 14:40 ` [LTP] [PATCH 2/3] syscalls/clock_nanosleep: add a test case for bad timespec address Filip Bozuta
2020-08-04 14:40 ` [LTP] [PATCH 3/3] syscalls/{send|recv}mmsg: add a test case for timeout and errno test Filip Bozuta
2020-08-05 15:20 ` [LTP] [PATCH 0/3] testcases/kernel/syscalls: Adding new testcases for existing tests Cyril Hrubis
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=20200805152244.GC631@yuki.lan \
--to=chrubis@suse.cz \
--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