Commit 30792e7c authored by Mark Brown's avatar Mark Brown Committed by Catalin Marinas

kselftest/arm64: Fix test numbering when skipping tests

Currently when skipping tests in the BTI testsuite we assign the same
number to every test since we forget to increment the current test number
as we skip, causing warnings about not running the expected test count and
potentially otherwise confusing result parsers. Fix this by adding an
appropriate increment.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230110-arm64-bti-selftest-skip-v1-1-143ecdc84567@kernel.orgSigned-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 67f49869
......@@ -112,7 +112,7 @@ static void __do_test(void (*trampoline)(void (*)(void)),
if (skip_all) {
test_skipped++;
putstr("ok ");
putnum(test_num);
putnum(test_num++);
putstr(" ");
puttestname(name, trampoline_name);
putstr(" # SKIP\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment