Skip to content

Commit fcff71f

Browse files
t-8chEric Biggers
authored andcommitted
lib/crypto: tests: polyval_kunit: Increase iterations for preparekey in IRQs
On my development machine the generic, memcpy()-only implementation of polyval_preparekey() is too fast for the IRQ workers to actually fire. The test fails. Increase the iterations to make the test more robust. The test will run for a maximum of one second in any case. [EB: This failure was already fixed by commit c31f4aa ("kunit: Enforce task execution in {soft,hard}irq contexts"). I'm still applying this patch too, since the iteration count in this test made its running time much shorter than the other similar ones.] Fixes: b3aed55 ("lib/crypto: tests: Add KUnit tests for POLYVAL") Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://lore.kernel.org/r/20260102-kunit-polyval-fix-v1-1-5313b5a65f35@linutronix.de Signed-off-by: Eric Biggers <ebiggers@kernel.org>
1 parent 9ace475 commit fcff71f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/crypto/tests/polyval_kunit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static void test_polyval_preparekey_in_irqs(struct kunit *test)
183183

184184
rand_bytes(state.raw_key, sizeof(state.raw_key));
185185
polyval_preparekey(&state.expected_key, state.raw_key);
186-
kunit_run_irq_test(test, polyval_irq_test_func, 20000, &state);
186+
kunit_run_irq_test(test, polyval_irq_test_func, 200000, &state);
187187
}
188188

189189
static int polyval_suite_init(struct kunit_suite *suite)

0 commit comments

Comments
 (0)