From b3a4f0e56058a48cbac1a0613c49d1175eba6ac3 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 20 Jun 2025 11:11:04 +0100 Subject: [PATCH] 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 --- testsuite/test-modprobe.c | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.47.2