Skip to content

Commit

Permalink
Fix file API unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Oct 18, 2023
1 parent 2e931c9 commit 5718e10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cups/testfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -620,7 +620,7 @@ read_write_tests(bool compression) // I - Use compression?
// cupsFileClose()
testBegin("cupsFileClose()");

if (cupsFileClose(fp))
if (!cupsFileClose(fp))
{
testEnd(true);
}
Expand Down Expand Up @@ -801,7 +801,7 @@ read_write_tests(bool compression) // I - Use compression?
// cupsFileClose()
testBegin("cupsFileClose()");

if (cupsFileClose(fp))
if (!cupsFileClose(fp))
{
testEnd(true);
}
Expand Down

0 comments on commit 5718e10

Please sign in to comment.