From: Emil Velikov Date: Fri, 20 Jun 2025 10:11:04 +0000 (+0100) Subject: testsuite/test-modprobe: reinstate chdir error path X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3a4f0e56058a48cbac1a0613c49d1175eba6ac3;p=thirdparty%2Fkmod.git testsuite/test-modprobe: reinstate chdir error path Earlier commit used a global sed to remove the no-longer needed exit(EXIT_FAILURE) calls. In the process it also removed one instance in the error path, which should remain. Fixes: e09acf2e ("testsuite: remove exit from EXEC_TOOL tests") Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/379 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/test-modprobe.c b/testsuite/test-modprobe.c index 92b1dc50..d48686fc 100644 --- a/testsuite/test-modprobe.c +++ b/testsuite/test-modprobe.c @@ -395,6 +395,7 @@ static int modprobe_module_from_relpath(void) { if (chdir("/home/foo") != 0) { perror("failed to change into /home/foo"); + return EXIT_FAILURE; } return EXEC_TOOL(modprobe, "./mod-simple.ko");