Fix RWops test suite crash on Linux: remove unnecessary fclose
authorAndreas Schiffler <aschiffler@ferzkopp.net>
Mon, 14 Jan 2013 07:20:55 -0800
changeset 6814fccdef204fcf
parent 6813 b21879e67db2
child 6815 5fefa916e039
Fix RWops test suite crash on Linux: remove unnecessary fclose
test/testautomation_rwops.c
     1.1 --- a/test/testautomation_rwops.c	Sun Jan 13 22:55:26 2013 -0800
     1.2 +++ b/test/testautomation_rwops.c	Mon Jan 14 07:20:55 2013 -0800
     1.3 @@ -332,10 +332,9 @@
     1.4     /* Run generic tests */
     1.5     _testGenericRWopsValidations( rw, 0 );
     1.6  
     1.7 -   /* Close handle */
     1.8 +   /* Close handle - does fclose() */
     1.9     SDL_RWclose(rw);
    1.10     SDLTest_AssertPass("Call to SDL_RWclose() succeeded");
    1.11 -   fclose(fp);
    1.12  
    1.13     return TEST_COMPLETED;
    1.14  }
    1.15 @@ -376,10 +375,9 @@
    1.16     /* Run generic tests */
    1.17     _testGenericRWopsValidations( rw, 1 );
    1.18  
    1.19 -   /* Close handle */
    1.20 +   /* Close handle - does fclose() */
    1.21     SDL_RWclose(rw);
    1.22     SDLTest_AssertPass("Call to SDL_RWclose() succeeded");
    1.23 -   fclose(fp);
    1.24  
    1.25     return TEST_COMPLETED;
    1.26  }