]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: remove exit from EXEC_TOOL tests
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 13 Jun 2025 16:24:32 +0000 (17:24 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 16 Jun 2025 12:37:42 +0000 (07:37 -0500)
commite09acf2e2447ddb0619bffd0237521c405c4e1bb
tree93a71de93220cc0b372f199be79de37b5224c037
parentd59268554b0a7ea68dfc5bf17289b9bdef7d2843
testsuite: remove exit from EXEC_TOOL tests

The EXEC_TOOL macros calls test_spawn_prog() which returns EXIT_FAILURE
in the unlikely case of a return from execv().

Thus the explicit exit() is dead code that we can remove and alongside
it the noreturn notation of the respective tests.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/371
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-depmod.c
testsuite/test-modinfo.c
testsuite/test-modprobe.c
testsuite/test-weakdep.c