From b85a8e8bc98e82ac48af7c730a4d24ee209330ed Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Mon, 29 Jul 2024 02:57:24 +0000 Subject: [PATCH] MAINT: Use EXIT_SUCCESS for the runner result --- ctest/test_runner.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ctest/test_runner.c b/ctest/test_runner.c index a9a6b3ee5..749a4f929 100644 --- a/ctest/test_runner.c +++ b/ctest/test_runner.c @@ -1,6 +1,5 @@ #include #include -#include int main(int argc, char *argv[]) { if (argc != 2 && argc != 3) { @@ -16,7 +15,7 @@ int main(int argc, char *argv[]) { } int result = system(command); - if (result != 0) { + if (result != EXIT_SUCCESS) { fprintf(stderr, "Error: Command '%s' failed with return code %d.\n", command, result); return EXIT_FAILURE; }