Thread View: linux.kernel.git
1 messages
1 total messages
Started by Kaartic Sivaraam
Mon, 26 Oct 2026 07:31
[PATCH v2 1/2] unit-tests: reshuffle NOOP arguments to maintain order
Author: Kaartic Sivaraam
Date: Mon, 26 Oct 2026 07:31
Date: Mon, 26 Oct 2026 07:31
45 lines
12345 bytes
12345 bytes
Ever since 9faf3963b6 (t: introduce compatibility options to
clar-based tests, 2024-12-13), our clar tests have a few NOOP
arguments in order to accept the same arguments that our integration
tests accept. This makes it easy to pass in test arguments when both
unit and integration tests are run together such as via:
$ meson test -v --test-args='-ix'
On a quick scan, the order of the NOOP arguments seem to be
alphabetical. That is only until you notice that 'with-dashes'
appears out of order.
Fix this by moving it into its appropriate place thus ensuring
they are in alphabetical order. This makes it easy for future
patches to not worry about where to place a NOOP argument
that is not yet in the list.
Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
---
t/unit-tests/unit-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/unit-tests/unit-test.c b/t/unit-tests/unit-test.c
index 752fb38fb3..d066c8a4c8 100644
--- a/t/unit-tests/unit-test.c
+++ b/t/unit-tests/unit-test.c
@@ -33,12 +33,12 @@ int cmd_main(int argc, const char **argv)
OPT_NOOP_ARG(0, "root"),
OPT_NOOP_ARG(0, "stress"),
OPT_NOOP_NOARG(0, "tee"),
- OPT_NOOP_NOARG(0, "with-dashes"),
OPT_NOOP_ARG(0, "valgrind"),
OPT_NOOP_ARG(0, "valgrind-only"),
OPT_NOOP_NOARG('v', "verbose"),
OPT_NOOP_NOARG('V', "verbose-log"),
OPT_NOOP_ARG(0, "verbose-only"),
+ OPT_NOOP_NOARG(0, "with-dashes"),
OPT_NOOP_NOARG('x', NULL),
OPT_END(),
};
--
2.56.0.99.g5a7d1e8045.dirty
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads