Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix RWops test suite crash on Linux: remove unnecessary fclose
Browse files Browse the repository at this point in the history
  • Loading branch information
ferzkopp committed Jan 14, 2013
1 parent ce50bff commit cae7b1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/testautomation_rwops.c
Expand Up @@ -332,10 +332,9 @@ rwops_testFPRead(void)
/* Run generic tests */
_testGenericRWopsValidations( rw, 0 );

/* Close handle */
/* Close handle - does fclose() */
SDL_RWclose(rw);
SDLTest_AssertPass("Call to SDL_RWclose() succeeded");
fclose(fp);

return TEST_COMPLETED;
}
Expand Down Expand Up @@ -376,10 +375,9 @@ rwops_testFPWrite(void)
/* Run generic tests */
_testGenericRWopsValidations( rw, 1 );

/* Close handle */
/* Close handle - does fclose() */
SDL_RWclose(rw);
SDLTest_AssertPass("Call to SDL_RWclose() succeeded");
fclose(fp);

return TEST_COMPLETED;
}
Expand Down

0 comments on commit cae7b1a

Please sign in to comment.