From: Michael R Sweet Date: Wed, 18 Oct 2023 15:43:06 +0000 (-0400) Subject: Fix file API unit tests. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5718e108cd19e7a133f32f1364ad4df7a5cbe190;p=thirdparty%2Fcups.git Fix file API unit tests. --- diff --git a/cups/testfile.c b/cups/testfile.c index 68cc3fe537..5d27b93238 100644 --- a/cups/testfile.c +++ b/cups/testfile.c @@ -558,7 +558,7 @@ read_write_tests(bool compression) // I - Use compression? for (i = 0; i < 256; i ++) { - if (!cupsFilePutChar(fp, i)) + if (cupsFilePutChar(fp, i)) break; } @@ -620,7 +620,7 @@ read_write_tests(bool compression) // I - Use compression? // cupsFileClose() testBegin("cupsFileClose()"); - if (cupsFileClose(fp)) + if (!cupsFileClose(fp)) { testEnd(true); } @@ -801,7 +801,7 @@ read_write_tests(bool compression) // I - Use compression? // cupsFileClose() testBegin("cupsFileClose()"); - if (cupsFileClose(fp)) + if (!cupsFileClose(fp)) { testEnd(true); }