test/testautomation_rwops.c
changeset 7191 75360622e65f
parent 6999 681820ca0e78
child 7663 53fe1b64eb2d
     1.1 --- a/test/testautomation_rwops.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/test/testautomation_rwops.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -32,56 +32,56 @@
     1.4  void
     1.5  RWopsSetUp(void *arg)
     1.6  {
     1.7 -	int fileLen;
     1.8 -	FILE *handle;
     1.9 -	int writtenLen;
    1.10 -	int result;
    1.11 +    int fileLen;
    1.12 +    FILE *handle;
    1.13 +    int writtenLen;
    1.14 +    int result;
    1.15  
    1.16 -	/* Clean up from previous runs (if any); ignore errors */
    1.17 -	remove(RWopsReadTestFilename);
    1.18 -	remove(RWopsWriteTestFilename);
    1.19 -	remove(RWopsAlphabetFilename);
    1.20 +    /* Clean up from previous runs (if any); ignore errors */
    1.21 +    remove(RWopsReadTestFilename);
    1.22 +    remove(RWopsWriteTestFilename);
    1.23 +    remove(RWopsAlphabetFilename);
    1.24  
    1.25 -	/* Create a test file */
    1.26 -	handle = fopen(RWopsReadTestFilename, "w");
    1.27 -	SDLTest_AssertCheck(handle != NULL, "Verify creation of file '%s' returned non NULL handle", RWopsReadTestFilename);
    1.28 +    /* Create a test file */
    1.29 +    handle = fopen(RWopsReadTestFilename, "w");
    1.30 +    SDLTest_AssertCheck(handle != NULL, "Verify creation of file '%s' returned non NULL handle", RWopsReadTestFilename);
    1.31          if (handle == NULL) return;
    1.32  
    1.33 -	/* Write some known text into it */
    1.34 -	fileLen = SDL_strlen(RWopsHelloWorldTestString);
    1.35 -	writtenLen = (int)fwrite(RWopsHelloWorldTestString, 1, fileLen, handle);
    1.36 -	SDLTest_AssertCheck(fileLen == writtenLen, "Verify number of written bytes, expected %i, got %i", fileLen, writtenLen);
    1.37 -	result = fclose(handle);
    1.38 -	SDLTest_AssertCheck(result == 0, "Verify result from fclose, expected 0, got %i", result);
    1.39 +    /* Write some known text into it */
    1.40 +    fileLen = SDL_strlen(RWopsHelloWorldTestString);
    1.41 +    writtenLen = (int)fwrite(RWopsHelloWorldTestString, 1, fileLen, handle);
    1.42 +    SDLTest_AssertCheck(fileLen == writtenLen, "Verify number of written bytes, expected %i, got %i", fileLen, writtenLen);
    1.43 +    result = fclose(handle);
    1.44 +    SDLTest_AssertCheck(result == 0, "Verify result from fclose, expected 0, got %i", result);
    1.45  
    1.46 -	/* Create a second test file */
    1.47 -	handle = fopen(RWopsAlphabetFilename, "w");
    1.48 -	SDLTest_AssertCheck(handle != NULL, "Verify creation of file '%s' returned non NULL handle", RWopsAlphabetFilename);
    1.49 +    /* Create a second test file */
    1.50 +    handle = fopen(RWopsAlphabetFilename, "w");
    1.51 +    SDLTest_AssertCheck(handle != NULL, "Verify creation of file '%s' returned non NULL handle", RWopsAlphabetFilename);
    1.52          if (handle == NULL) return;
    1.53  
    1.54 -	/* Write alphabet text into it */
    1.55 -	fileLen = SDL_strlen(RWopsAlphabetString);
    1.56 -	writtenLen = (int)fwrite(RWopsAlphabetString, 1, fileLen, handle);
    1.57 -	SDLTest_AssertCheck(fileLen == writtenLen, "Verify number of written bytes, expected %i, got %i", fileLen, writtenLen);
    1.58 -	result = fclose(handle);
    1.59 -	SDLTest_AssertCheck(result == 0, "Verify result from fclose, expected 0, got %i", result);
    1.60 +    /* Write alphabet text into it */
    1.61 +    fileLen = SDL_strlen(RWopsAlphabetString);
    1.62 +    writtenLen = (int)fwrite(RWopsAlphabetString, 1, fileLen, handle);
    1.63 +    SDLTest_AssertCheck(fileLen == writtenLen, "Verify number of written bytes, expected %i, got %i", fileLen, writtenLen);
    1.64 +    result = fclose(handle);
    1.65 +    SDLTest_AssertCheck(result == 0, "Verify result from fclose, expected 0, got %i", result);
    1.66  
    1.67 -	SDLTest_AssertPass("Creation of test file completed");
    1.68 +    SDLTest_AssertPass("Creation of test file completed");
    1.69  }
    1.70  
    1.71  void
    1.72  RWopsTearDown(void *arg)
    1.73  {
    1.74 -	int result;
    1.75 -	
    1.76 -	/* Remove the created files to clean up; ignore errors for write filename */
    1.77 -	result = remove(RWopsReadTestFilename);
    1.78 -	SDLTest_AssertCheck(result == 0, "Verify result from remove(%s), expected 0, got %i", RWopsReadTestFilename, result);
    1.79 -	remove(RWopsWriteTestFilename);
    1.80 -	result = remove(RWopsAlphabetFilename);
    1.81 -	SDLTest_AssertCheck(result == 0, "Verify result from remove(%s), expected 0, got %i", RWopsAlphabetFilename, result);
    1.82 +    int result;
    1.83  
    1.84 -	SDLTest_AssertPass("Cleanup of test files completed");
    1.85 +    /* Remove the created files to clean up; ignore errors for write filename */
    1.86 +    result = remove(RWopsReadTestFilename);
    1.87 +    SDLTest_AssertCheck(result == 0, "Verify result from remove(%s), expected 0, got %i", RWopsReadTestFilename, result);
    1.88 +    remove(RWopsWriteTestFilename);
    1.89 +    result = remove(RWopsAlphabetFilename);
    1.90 +    SDLTest_AssertCheck(result == 0, "Verify result from remove(%s), expected 0, got %i", RWopsAlphabetFilename, result);
    1.91 +
    1.92 +    SDLTest_AssertPass("Cleanup of test files completed");
    1.93  }
    1.94  
    1.95  /**
    1.96 @@ -91,7 +91,7 @@
    1.97   * http://wiki.libsdl.org/moin.cgi/SDL_RWseek
    1.98   * http://wiki.libsdl.org/moin.cgi/SDL_RWread
    1.99   */
   1.100 -void 
   1.101 +void
   1.102  _testGenericRWopsValidations(SDL_RWops *rw, int write)
   1.103  {
   1.104     char buf[sizeof(RWopsHelloWorldTestString)];
   1.105 @@ -111,10 +111,10 @@
   1.106     s = SDL_RWwrite(rw, RWopsHelloWorldTestString, sizeof(RWopsHelloWorldTestString)-1, 1);
   1.107     SDLTest_AssertPass("Call to SDL_RWwrite succeeded");
   1.108     if (write) {
   1.109 -		SDLTest_AssertCheck(s == (size_t)1, "Verify result of writing one byte with SDL_RWwrite, expected 1, got %i", s);
   1.110 +        SDLTest_AssertCheck(s == (size_t)1, "Verify result of writing one byte with SDL_RWwrite, expected 1, got %i", s);
   1.111     }
   1.112     else {
   1.113 -		SDLTest_AssertCheck(s == (size_t)0, "Verify result of writing with SDL_RWwrite, expected: 0, got %i", s);
   1.114 +        SDLTest_AssertCheck(s == (size_t)0, "Verify result of writing with SDL_RWwrite, expected: 0, got %i", s);
   1.115     }
   1.116  
   1.117     /* Test seek to random position */
   1.118 @@ -131,38 +131,38 @@
   1.119     s = SDL_RWread( rw, buf, 1, sizeof(RWopsHelloWorldTestString)-1 );
   1.120     SDLTest_AssertPass("Call to SDL_RWread succeeded");
   1.121     SDLTest_AssertCheck(
   1.122 -	   s == (size_t)(sizeof(RWopsHelloWorldTestString)-1), 
   1.123 -	   "Verify result from SDL_RWread, expected %i, got %i",
   1.124 -	   sizeof(RWopsHelloWorldTestString)-1,
   1.125 -	   s);
   1.126 +       s == (size_t)(sizeof(RWopsHelloWorldTestString)-1),
   1.127 +       "Verify result from SDL_RWread, expected %i, got %i",
   1.128 +       sizeof(RWopsHelloWorldTestString)-1,
   1.129 +       s);
   1.130     SDLTest_AssertCheck(
   1.131 -	   SDL_memcmp(buf, RWopsHelloWorldTestString, sizeof(RWopsHelloWorldTestString)-1 ) == 0, 
   1.132 -	   "Verify read bytes match expected string, expected '%s', got '%s'", RWopsHelloWorldTestString, buf);
   1.133 +       SDL_memcmp(buf, RWopsHelloWorldTestString, sizeof(RWopsHelloWorldTestString)-1 ) == 0,
   1.134 +       "Verify read bytes match expected string, expected '%s', got '%s'", RWopsHelloWorldTestString, buf);
   1.135  
   1.136     /* More seek tests. */
   1.137     i = SDL_RWseek( rw, -4, RW_SEEK_CUR );
   1.138     SDLTest_AssertPass("Call to SDL_RWseek(...,-4,RW_SEEK_CUR) succeeded");
   1.139     SDLTest_AssertCheck(
   1.140 -	   i == (Sint64)(sizeof(RWopsHelloWorldTestString)-5), 
   1.141 -	   "Verify seek to -4 with SDL_RWseek (RW_SEEK_CUR), expected %i, got %i",
   1.142 -	   sizeof(RWopsHelloWorldTestString)-5,
   1.143 -	   i);
   1.144 +       i == (Sint64)(sizeof(RWopsHelloWorldTestString)-5),
   1.145 +       "Verify seek to -4 with SDL_RWseek (RW_SEEK_CUR), expected %i, got %i",
   1.146 +       sizeof(RWopsHelloWorldTestString)-5,
   1.147 +       i);
   1.148  
   1.149     i = SDL_RWseek( rw, -1, RW_SEEK_END );
   1.150     SDLTest_AssertPass("Call to SDL_RWseek(...,-1,RW_SEEK_END) succeeded");
   1.151     SDLTest_AssertCheck(
   1.152 -	   i == (Sint64)(sizeof(RWopsHelloWorldTestString)-2), 
   1.153 -	   "Verify seek to -1 with SDL_RWseek (RW_SEEK_END), expected %i, got %i",
   1.154 -	   sizeof(RWopsHelloWorldTestString)-2,
   1.155 -	   i);
   1.156 -	   
   1.157 +       i == (Sint64)(sizeof(RWopsHelloWorldTestString)-2),
   1.158 +       "Verify seek to -1 with SDL_RWseek (RW_SEEK_END), expected %i, got %i",
   1.159 +       sizeof(RWopsHelloWorldTestString)-2,
   1.160 +       i);
   1.161 +
   1.162     /* Invalid whence seek */
   1.163     i = SDL_RWseek( rw, 0, 999 );
   1.164     SDLTest_AssertPass("Call to SDL_RWseek(...,0,invalid_whence) succeeded");
   1.165     SDLTest_AssertCheck(
   1.166 -	   i == (Sint64)(-1), 
   1.167 -	   "Verify seek with SDL_RWseek (invalid_whence); expected: -1, got %i",
   1.168 -	   i);
   1.169 +       i == (Sint64)(-1),
   1.170 +       "Verify seek with SDL_RWseek (invalid_whence); expected: -1, got %i",
   1.171 +       i);
   1.172  }
   1.173  
   1.174  /*!
   1.175 @@ -258,7 +258,7 @@
   1.176   * http://wiki.libsdl.org/moin.cgi/SDL_RWFromConstMem
   1.177   * http://wiki.libsdl.org/moin.cgi/SDL_RWClose
   1.178   */
   1.179 -int 
   1.180 +int
   1.181  rwops_testConstMem (void)
   1.182  {
   1.183     SDL_RWops *rw;
   1.184 @@ -311,15 +311,15 @@
   1.185     /* Check type */
   1.186  #if defined(ANDROID)
   1.187     SDLTest_AssertCheck(
   1.188 -      rw->type == SDL_RWOPS_STDFILE || rw->type == SDL_RWOPS_JNIFILE, 
   1.189 +      rw->type == SDL_RWOPS_STDFILE || rw->type == SDL_RWOPS_JNIFILE,
   1.190        "Verify RWops type is SDL_RWOPS_STDFILE or SDL_RWOPS_JNIFILE; expected: %d|%d, got: %d", SDL_RWOPS_STDFILE, SDL_RWOPS_JNIFILE, rw->type);
   1.191  #elif defined(__WIN32__)
   1.192     SDLTest_AssertCheck(
   1.193 -      rw->type == SDL_RWOPS_WINFILE, 
   1.194 +      rw->type == SDL_RWOPS_WINFILE,
   1.195        "Verify RWops type is SDL_RWOPS_WINFILE; expected: %d, got: %d", SDL_RWOPS_WINFILE, rw->type);
   1.196  #else
   1.197     SDLTest_AssertCheck(
   1.198 -      rw->type == SDL_RWOPS_STDFILE, 
   1.199 +      rw->type == SDL_RWOPS_STDFILE,
   1.200        "Verify RWops type is SDL_RWOPS_STDFILE; expected: %d, got: %d", SDL_RWOPS_STDFILE, rw->type);
   1.201  #endif
   1.202  
   1.203 @@ -358,15 +358,15 @@
   1.204     /* Check type */
   1.205  #if defined(ANDROID)
   1.206     SDLTest_AssertCheck(
   1.207 -      rw->type == SDL_RWOPS_STDFILE || rw->type == SDL_RWOPS_JNIFILE, 
   1.208 +      rw->type == SDL_RWOPS_STDFILE || rw->type == SDL_RWOPS_JNIFILE,
   1.209        "Verify RWops type is SDL_RWOPS_STDFILE or SDL_RWOPS_JNIFILE; expected: %d|%d, got: %d", SDL_RWOPS_STDFILE, SDL_RWOPS_JNIFILE, rw->type);
   1.210  #elif defined(__WIN32__)
   1.211     SDLTest_AssertCheck(
   1.212 -      rw->type == SDL_RWOPS_WINFILE, 
   1.213 +      rw->type == SDL_RWOPS_WINFILE,
   1.214        "Verify RWops type is SDL_RWOPS_WINFILE; expected: %d, got: %d", SDL_RWOPS_WINFILE, rw->type);
   1.215  #else
   1.216     SDLTest_AssertCheck(
   1.217 -      rw->type == SDL_RWOPS_STDFILE, 
   1.218 +      rw->type == SDL_RWOPS_STDFILE,
   1.219        "Verify RWops type is SDL_RWOPS_STDFILE; expected: %d, got: %d", SDL_RWOPS_STDFILE, rw->type);
   1.220  #endif
   1.221  
   1.222 @@ -417,7 +417,7 @@
   1.223  
   1.224     /* Check type */
   1.225     SDLTest_AssertCheck(
   1.226 -      rw->type == SDL_RWOPS_STDFILE, 
   1.227 +      rw->type == SDL_RWOPS_STDFILE,
   1.228        "Verify RWops type is SDL_RWOPS_STDFILE; expected: %d, got: %d", SDL_RWOPS_STDFILE, rw->type);
   1.229  
   1.230     /* Run generic tests */
   1.231 @@ -467,7 +467,7 @@
   1.232  
   1.233     /* Check type */
   1.234     SDLTest_AssertCheck(
   1.235 -      rw->type == SDL_RWOPS_STDFILE, 
   1.236 +      rw->type == SDL_RWOPS_STDFILE,
   1.237        "Verify RWops type is SDL_RWOPS_STDFILE; expected: %d, got: %d", SDL_RWOPS_STDFILE, rw->type);
   1.238  
   1.239     /* Run generic tests */
   1.240 @@ -498,9 +498,9 @@
   1.241  
   1.242     /* Check type */
   1.243     SDLTest_AssertCheck(
   1.244 -      rw->type == SDL_RWOPS_UNKNOWN, 
   1.245 +      rw->type == SDL_RWOPS_UNKNOWN,
   1.246        "Verify RWops type is SDL_RWOPS_UNKNOWN; expected: %d, got: %d", SDL_RWOPS_UNKNOWN, rw->type);
   1.247 -          
   1.248 +
   1.249     /* Free context again */
   1.250     SDL_FreeRW(rw);
   1.251     SDLTest_AssertPass("Call to SDL_FreeRW() succeeded");
   1.252 @@ -529,13 +529,13 @@
   1.253     int size;
   1.254     int result;
   1.255  
   1.256 -   
   1.257 +
   1.258     for (size=5; size<10; size++)
   1.259     {
   1.260       /* Terminate buffer */
   1.261       buffer_file[slen] = 0;
   1.262       buffer_mem[slen] = 0;
   1.263 -     
   1.264 +
   1.265       /* Read/seek from memory */
   1.266       rwops_mem = SDL_RWFromMem((void *)RWopsAlphabetString, slen);
   1.267       SDLTest_AssertPass("Call to SDL_RWFromMem()");
   1.268 @@ -557,7 +557,7 @@
   1.269       result = SDL_RWclose(rwops_file);
   1.270       SDLTest_AssertPass("Call to SDL_RWclose(file)");
   1.271       SDLTest_AssertCheck(result == 0, "Verify result value is 0; got: %d", result);
   1.272 -   
   1.273 +
   1.274       /* Compare */
   1.275       SDLTest_AssertCheck(rv_mem == rv_file, "Verify returned read blocks matches for mem and file reads; got: rv_mem=%d rv_file=%d", rv_mem, rv_file);
   1.276       SDLTest_AssertCheck(sv_mem == sv_file, "Verify SEEK_END position matches for mem and file seeks; got: sv_mem=%llu sv_file=%llu", sv_mem, sv_file);
   1.277 @@ -570,7 +570,7 @@
   1.278         SDL_strncmp(buffer_file, RWopsAlphabetString, slen) == 0,
   1.279         "Verify file buffer contain alphabet string; expected: %s, got: %s", RWopsAlphabetString, buffer_file);
   1.280     }
   1.281 -      
   1.282 +
   1.283     return TEST_COMPLETED;
   1.284  }
   1.285  
   1.286 @@ -605,7 +605,7 @@
   1.287     int cresult;
   1.288  
   1.289     for (mode = 0; mode < 3; mode++) {
   1.290 -   
   1.291 +
   1.292       /* Create test data */
   1.293       switch (mode) {
   1.294         case 0:
   1.295 @@ -636,7 +636,7 @@
   1.296          LE64value = SDLTest_RandomUint64();
   1.297          break;
   1.298       }
   1.299 -   
   1.300 +
   1.301       /* Write test. */
   1.302       rw = SDL_RWFromFile(RWopsWriteTestFilename, "w+");
   1.303       SDLTest_AssertPass("Call to SDL_RWFromFile(..,\"w+\")");
   1.304 @@ -648,22 +648,22 @@
   1.305       /* Write test data */
   1.306       objectsWritten = SDL_WriteBE16(rw, BE16value);
   1.307       SDLTest_AssertPass("Call to SDL_WriteBE16");
   1.308 -     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);   
   1.309 +     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
   1.310       objectsWritten = SDL_WriteBE32(rw, BE32value);
   1.311       SDLTest_AssertPass("Call to SDL_WriteBE32");
   1.312 -     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);   
   1.313 +     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
   1.314       objectsWritten = SDL_WriteBE64(rw, BE64value);
   1.315       SDLTest_AssertPass("Call to SDL_WriteBE64");
   1.316 -     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);   
   1.317 +     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
   1.318       objectsWritten = SDL_WriteLE16(rw, LE16value);
   1.319       SDLTest_AssertPass("Call to SDL_WriteLE16");
   1.320 -     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);   
   1.321 +     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
   1.322       objectsWritten = SDL_WriteLE32(rw, LE32value);
   1.323       SDLTest_AssertPass("Call to SDL_WriteLE32");
   1.324 -     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);   
   1.325 +     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
   1.326       objectsWritten = SDL_WriteLE64(rw, LE64value);
   1.327       SDLTest_AssertPass("Call to SDL_WriteLE64");
   1.328 -     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);   
   1.329 +     SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
   1.330  
   1.331       /* Test seek to start */
   1.332       result = SDL_RWseek( rw, 0, RW_SEEK_SET );
   1.333 @@ -676,16 +676,16 @@
   1.334       SDLTest_AssertCheck(BE16test == BE16value, "Validate return value from SDL_ReadBE16, expected: %hu, got: %hu", BE16value, BE16test);
   1.335       BE32test = SDL_ReadBE32(rw);
   1.336       SDLTest_AssertPass("Call to SDL_ReadBE32");
   1.337 -     SDLTest_AssertCheck(BE32test == BE32value, "Validate return value from SDL_ReadBE32, expected: %u, got: %u", BE32value, BE32test);   
   1.338 +     SDLTest_AssertCheck(BE32test == BE32value, "Validate return value from SDL_ReadBE32, expected: %u, got: %u", BE32value, BE32test);
   1.339       BE64test = SDL_ReadBE64(rw);
   1.340       SDLTest_AssertPass("Call to SDL_ReadBE64");
   1.341 -     SDLTest_AssertCheck(BE64test == BE64value, "Validate return value from SDL_ReadBE64, expected: %llu, got: %llu", BE64value, BE64test);   
   1.342 +     SDLTest_AssertCheck(BE64test == BE64value, "Validate return value from SDL_ReadBE64, expected: %llu, got: %llu", BE64value, BE64test);
   1.343       LE16test = SDL_ReadLE16(rw);
   1.344       SDLTest_AssertPass("Call to SDL_ReadLE16");
   1.345       SDLTest_AssertCheck(LE16test == LE16value, "Validate return value from SDL_ReadLE16, expected: %hu, got: %hu", LE16value, LE16test);
   1.346       LE32test = SDL_ReadLE32(rw);
   1.347       SDLTest_AssertPass("Call to SDL_ReadLE32");
   1.348 -     SDLTest_AssertCheck(LE32test == LE32value, "Validate return value from SDL_ReadLE32, expected: %u, got: %u", LE32value, LE32test);   
   1.349 +     SDLTest_AssertCheck(LE32test == LE32value, "Validate return value from SDL_ReadLE32, expected: %u, got: %u", LE32value, LE32test);
   1.350       LE64test = SDL_ReadLE64(rw);
   1.351       SDLTest_AssertPass("Call to SDL_ReadLE64");
   1.352       SDLTest_AssertCheck(LE64test == LE64value, "Validate return value from SDL_ReadLE64, expected: %llu, got: %llu", LE64value, LE64test);
   1.353 @@ -693,7 +693,7 @@
   1.354       /* Close handle */
   1.355       cresult = SDL_RWclose(rw);
   1.356       SDLTest_AssertPass("Call to SDL_RWclose() succeeded");
   1.357 -     SDLTest_AssertCheck(cresult == 0, "Verify result value is 0; got: %d", cresult);   
   1.358 +     SDLTest_AssertCheck(cresult == 0, "Verify result value is 0; got: %d", cresult);
   1.359     }
   1.360  
   1.361     return TEST_COMPLETED;
   1.362 @@ -704,45 +704,45 @@
   1.363  
   1.364  /* RWops test cases */
   1.365  static const SDLTest_TestCaseReference rwopsTest1 =
   1.366 -		{ (SDLTest_TestCaseFp)rwops_testParamNegative, "rwops_testParamNegative", "Negative test for SDL_RWFromFile parameters", TEST_ENABLED };
   1.367 +        { (SDLTest_TestCaseFp)rwops_testParamNegative, "rwops_testParamNegative", "Negative test for SDL_RWFromFile parameters", TEST_ENABLED };
   1.368  
   1.369  static const SDLTest_TestCaseReference rwopsTest2 =
   1.370 -		{ (SDLTest_TestCaseFp)rwops_testMem, "rwops_testMem", "Tests opening from memory", TEST_ENABLED };
   1.371 +        { (SDLTest_TestCaseFp)rwops_testMem, "rwops_testMem", "Tests opening from memory", TEST_ENABLED };
   1.372  
   1.373  static const SDLTest_TestCaseReference rwopsTest3 =
   1.374 -		{ (SDLTest_TestCaseFp)rwops_testConstMem, "rwops_testConstMem", "Tests opening from (const) memory", TEST_ENABLED };
   1.375 +        { (SDLTest_TestCaseFp)rwops_testConstMem, "rwops_testConstMem", "Tests opening from (const) memory", TEST_ENABLED };
   1.376  
   1.377  static const SDLTest_TestCaseReference rwopsTest4 =
   1.378 -		{ (SDLTest_TestCaseFp)rwops_testFileRead, "rwops_testFileRead", "Tests reading from a file", TEST_ENABLED };
   1.379 +        { (SDLTest_TestCaseFp)rwops_testFileRead, "rwops_testFileRead", "Tests reading from a file", TEST_ENABLED };
   1.380  
   1.381  static const SDLTest_TestCaseReference rwopsTest5 =
   1.382 -		{ (SDLTest_TestCaseFp)rwops_testFileWrite, "rwops_testFileWrite", "Test writing to a file", TEST_ENABLED };
   1.383 +        { (SDLTest_TestCaseFp)rwops_testFileWrite, "rwops_testFileWrite", "Test writing to a file", TEST_ENABLED };
   1.384  
   1.385  static const SDLTest_TestCaseReference rwopsTest6 =
   1.386 -		{ (SDLTest_TestCaseFp)rwops_testFPRead, "rwops_testFPRead", "Test reading from file pointer", TEST_ENABLED };
   1.387 +        { (SDLTest_TestCaseFp)rwops_testFPRead, "rwops_testFPRead", "Test reading from file pointer", TEST_ENABLED };
   1.388  
   1.389  static const SDLTest_TestCaseReference rwopsTest7 =
   1.390 -		{ (SDLTest_TestCaseFp)rwops_testFPWrite, "rwops_testFPWrite", "Test writing to file pointer", TEST_ENABLED };
   1.391 +        { (SDLTest_TestCaseFp)rwops_testFPWrite, "rwops_testFPWrite", "Test writing to file pointer", TEST_ENABLED };
   1.392  
   1.393  static const SDLTest_TestCaseReference rwopsTest8 =
   1.394 -		{ (SDLTest_TestCaseFp)rwops_testAllocFree, "rwops_testAllocFree", "Test alloc and free of RW context", TEST_ENABLED };
   1.395 +        { (SDLTest_TestCaseFp)rwops_testAllocFree, "rwops_testAllocFree", "Test alloc and free of RW context", TEST_ENABLED };
   1.396  
   1.397  static const SDLTest_TestCaseReference rwopsTest9 =
   1.398 -		{ (SDLTest_TestCaseFp)rwops_testFileWriteReadEndian, "rwops_testFileWriteReadEndian", "Test writing and reading via the Endian aware functions", TEST_ENABLED };
   1.399 +        { (SDLTest_TestCaseFp)rwops_testFileWriteReadEndian, "rwops_testFileWriteReadEndian", "Test writing and reading via the Endian aware functions", TEST_ENABLED };
   1.400  
   1.401  static const SDLTest_TestCaseReference rwopsTest10 =
   1.402 -		{ (SDLTest_TestCaseFp)rwops_testCompareRWFromMemWithRWFromFile, "rwops_testCompareRWFromMemWithRWFromFile", "Compare RWFromMem and RWFromFile RWops for read and seek", TEST_ENABLED };
   1.403 +        { (SDLTest_TestCaseFp)rwops_testCompareRWFromMemWithRWFromFile, "rwops_testCompareRWFromMemWithRWFromFile", "Compare RWFromMem and RWFromFile RWops for read and seek", TEST_ENABLED };
   1.404  
   1.405  /* Sequence of RWops test cases */
   1.406  static const SDLTest_TestCaseReference *rwopsTests[] =  {
   1.407 -	&rwopsTest1, &rwopsTest2, &rwopsTest3, &rwopsTest4, &rwopsTest5, &rwopsTest6, 
   1.408 -	&rwopsTest7, &rwopsTest8, &rwopsTest9, &rwopsTest10, NULL
   1.409 +    &rwopsTest1, &rwopsTest2, &rwopsTest3, &rwopsTest4, &rwopsTest5, &rwopsTest6,
   1.410 +    &rwopsTest7, &rwopsTest8, &rwopsTest9, &rwopsTest10, NULL
   1.411  };
   1.412  
   1.413  /* RWops test suite (global) */
   1.414  SDLTest_TestSuiteReference rwopsTestSuite = {
   1.415 -	"RWops",
   1.416 -	RWopsSetUp,
   1.417 -	rwopsTests,
   1.418 -	RWopsTearDown
   1.419 +    "RWops",
   1.420 +    RWopsSetUp,
   1.421 +    rwopsTests,
   1.422 +    RWopsTearDown
   1.423  };