]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: consolidate final exit() call
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Jun 2025 20:41:14 +0000 (21:41 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 8 Jul 2025 12:17:14 +0000 (07:17 -0500)
commit1c304d9b95b15992760a812db1386638ec1d2796
treef16be31ad3cb5f32e147c56fa4c841a2c4737e1d
parentdd77977c2997826cad72221237540ee21c47ffbf
testsuite: consolidate final exit() call

Currently we call exit() in a handful of places within test_run_child().
Where the latter is annotated as `noreturn int` and we never check the
return value.

Just move the exit() further up the call stack and remove the noreturn
notation.

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