]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix file API unit tests.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 18 Oct 2023 15:43:06 +0000 (11:43 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 18 Oct 2023 15:43:06 +0000 (11:43 -0400)
cups/testfile.c

index 68cc3fe537f119615ba8c56904a16f397fdeacde..5d27b932383f348df36f2a11ca5d71663fd5be74 100644 (file)
@@ -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);
     }