test/testautomation_rwops.c
changeset 6814 fccdef204fcf
parent 6781 17a9b53a5ac3
child 6819 afef68703f54
--- 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;
 }