Fix RWops test suite crash on Linux: remove unnecessary fclose
authorAndreas Schiffler <aschiffler@ferzkopp.net>
Mon, 14 Jan 2013 07:20:55 -0800
changeset 6814 fccdef204fcf
parent 6813 b21879e67db2
child 6815 5fefa916e039
Fix RWops test suite crash on Linux: remove unnecessary fclose
test/testautomation_rwops.c
--- a/test/testautomation_rwops.c	Sun Jan 13 22:55:26 2013 -0800
+++ b/test/testautomation_rwops.c	Mon Jan 14 07:20:55 2013 -0800
@@ -332,10 +332,9 @@
    /* 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;
 }
@@ -376,10 +375,9 @@
    /* 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;
 }