From: Petr Vorel <pvorel@suse.cz>
To: Jinseok Kim <always.starving0@gmail.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v8] power_management: rewrite runpwtests04.sh in C
Date: Wed, 5 Aug 2026 17:48:46 +0200 [thread overview]
Message-ID: <20260805154846.GC649402@pevik> (raw)
In-Reply-To: <20260805145213.3066-1-always.starving0@gmail.com>
Hi Jinseok Kim,
> +static void run(void)
> +{
> + check_available_governors();
> + check_current_driver();
> + check_current_governor();
> + check_current_governor_ro();
please instead of this and .test_all use a test struct, the way we use in
basically any test, see e.g.
testcases/kernel/syscalls/mbind/mbind01.c
testcases/kernel/syscalls/bind/bind01.c
then you'll use:
.tcnt = ARRAY_SIZE(tcase),
.test = do_test
Kind regards,
Petr
> +}
> +
> +static struct tst_test test = {
> + .test_all = run,
> + .needs_root = 1,
> +};
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-08-05 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 14:52 [LTP] [PATCH v8] power_management: rewrite runpwtests04.sh in C Jinseok Kim
2026-08-05 15:46 ` Petr Vorel
2026-08-05 15:48 ` Petr Vorel [this message]
[not found] ` <20260805154727.GB649402@pevik>
2026-08-06 8:36 ` Jan Stancek via ltp
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=20260805154846.GC649402@pevik \
--to=pvorel@suse.cz \
--cc=always.starving0@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.