From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2] ltp: remove .tid from test struct
Date: Tue, 31 Oct 2017 18:29:51 +0100 [thread overview]
Message-ID: <20171031172950.GA30431@rei.lan> (raw)
In-Reply-To: <20171025100631.9218-1-liwang@redhat.com>
Hi!
> diff --git a/include/tst_safe_macros.h b/include/tst_safe_macros.h
> index 9562005..ed9c73c 100644
> --- a/include/tst_safe_macros.h
> +++ b/include/tst_safe_macros.h
> @@ -406,7 +406,7 @@ static inline sighandler_t safe_signal(const char *file, const int lineno,
> #define SAFE_EXECL(file, arg, ...) do { \
> execl((file), (arg), ##__VA_ARGS__); \
> tst_brk_(__FILE__, __LINE__, TBROK | TERRNO, \
> - "execlp(%s, %s, ...) failed", file, arg); \
> + "execl(%s, %s, ...) failed", file, arg); \
> } while (0)
This should be now really send in a separate patch, since the rest of
the patchset is not a simple typo anymore.
> diff --git a/lib/tst_timer_test.c b/lib/tst_timer_test.c
> index cd4ebca..fc6cbf1 100644
> --- a/lib/tst_timer_test.c
> +++ b/lib/tst_timer_test.c
> @@ -455,14 +455,13 @@ static void parse_timer_opts(void)
> }
> }
>
> -struct tst_test *tst_timer_test_setup(struct tst_test *timer_test)
> +struct tst_test *tst_timer_test_setup(const char *tid, struct tst_test *timer_test)
> {
> + scall = tid;
> setup = timer_test->setup;
> cleanup = timer_test->cleanup;
> - scall = timer_test->tid;
> sample = timer_test->sample;
>
> - timer_test->tid = NULL;
> timer_test->setup = timer_setup;
> timer_test->cleanup = timer_cleanup;
> timer_test->test = timer_test_fn;
I guess that I would rather see the syscall name to be set in the test
structure rather than using the test file name for the timer testcases.
So what about passing it in the test structure as an newly added scall
string pointer?
Otherwise the rest of the patchset is fine.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2017-10-31 17:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-25 10:06 [LTP] [PATCH v2] ltp: remove .tid from test struct Li Wang
2017-10-31 17:29 ` Cyril Hrubis [this message]
2017-11-01 2:47 ` Li Wang
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=20171031172950.GA30431@rei.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