linux-stable/tools/testing/selftests/alsa
Jakub Kicinski e3350ba4a5 selftests: avoid using SKIP(exit()) in harness fixure setup
selftest harness uses various exit codes to signal test
results. Avoid calling exit() directly, otherwise tests
may get broken by harness refactoring (like the commit
under Fixes). SKIP() will instruct the harness that the
test shouldn't run, it used to not be the case, but that
has been fixed. So just return, no need to exit.

Note that for hmm-tests this actually changes the result
from pass to skip. Which seems fair, the test is skipped,
after all.

Reported-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/all/05f7bf89-04a5-4b65-bf59-c19456aeb1f0@sirena.org.uk
Fixes: a724707976 ("selftests: kselftest_harness: use KSFT_* exit codes")
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Tested-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://lore.kernel.org/r/20240304233621.646054-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-05 19:25:36 -08:00
..
conf.d kselftest/alsa: pcm - move more configuration to configuration files 2023-01-02 15:07:35 +01:00
.gitignore selftests: ALSA: Add test-pcmtest-driver to .gitignore 2023-07-19 15:25:03 +02:00
alsa-local.h kselftest/alsa: pcm-test: Report cards declared in config but missing 2023-09-20 18:10:50 +02:00
conf.c kselftest/alsa - conf: Stringify the printed errno in sysfs_get() 2024-01-09 15:14:46 +01:00
Makefile selftests: ALSA: Add test for the 'pcmtest' driver 2023-06-07 13:09:03 +02:00
mixer-test.c kselftest/alsa - mixer-test: Fix the print format specifier warning 2024-01-09 15:14:46 +01:00
pcm-test.c kselftest/alsa: pcm-test: Report cards declared in config but missing 2023-09-20 18:10:50 +02:00
pcm-test.conf kselftest/alsa: pcm - Add more coverage by default 2023-01-02 15:08:24 +01:00
test-pcmtest-driver.c selftests: avoid using SKIP(exit()) in harness fixure setup 2024-03-05 19:25:36 -08:00