From: Michael Tremer Date: Sat, 22 Mar 2025 14:19:46 +0000 (+0000) Subject: tests: command: Always return zero after the pipe is finished X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34eddc71b288fa458a310f9631696349a0bc29b3;p=pakfire.git tests: command: Always return zero after the pipe is finished Signed-off-by: Michael Tremer --- diff --git a/tests/stub/command.c b/tests/stub/command.c index 053661b5..01c17113 100644 --- a/tests/stub/command.c +++ b/tests/stub/command.c @@ -355,7 +355,7 @@ static int _pipe(int argc, char* argv[]) { // Break if we are done reading if (c == EOF) - return errno; + break; // Write the character to stdout r = fputc(c, stdout); @@ -368,6 +368,8 @@ static int _pipe(int argc, char* argv[]) { break; } } + + return 0; } /*