# HG changeset patch # User Andreas Schiffler # Date 1358176855 28800 # Node ID fccdef204fcf2ca140bafd6b38167d2ae339f411 # Parent b21879e67db265ce6614fb2d316d02b2a857db36 Fix RWops test suite crash on Linux: remove unnecessary fclose diff -r b21879e67db2 -r fccdef204fcf 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; }