lib/842: depend on the decompressor for KUnit tests

842_DECOMPRESS_KUNIT_TEST selects the decompressor even when no other
option needs it, including through KUNIT_ALL_TESTS.

Depend on 842_DECOMPRESS as required by
Documentation/dev-tools/kunit/style.rst. This also prevents the test from
promoting a modular decompressor to built-in.

Fixes: cca072cb14 ("lib/842: add KUnit tests for the decompressor")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Closes: https://lore.kernel.org/r/CAMuHMdVcZ5cV4-HrjLYfFKh6UshiVxq5eXCNyp0Z1k_SMAvF5g@mail.gmail.com/
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Acked-by: David Gow <david@davidgow.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Karl Mehltretter 2026-09-17 07:56:45 +02:00 committed by Herbert Xu
parent e273759a0e
commit 4e721fe9cb

View File

@ -2228,7 +2228,7 @@ if RUNTIME_TESTING_MENU
config 842_DECOMPRESS_KUNIT_TEST
tristate "KUnit tests for the 842 decompressor" if !KUNIT_ALL_TESTS
depends on KUNIT
select 842_DECOMPRESS
depends on 842_DECOMPRESS
default KUNIT_ALL_TESTS
help
Enable stream-validation and boundary tests for the software 842