test/testautomation_pixels.c
changeset 7191 75360622e65f
parent 7162 f2fb5a030227
child 7677 871d43c6968a
     1.1 --- a/test/testautomation_pixels.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/test/testautomation_pixels.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -11,7 +11,7 @@
     1.4  
     1.5  /* Definition of all RGB formats used to test pixel conversions */
     1.6  const int _numRGBPixelFormats = 30;
     1.7 -Uint32 _RGBPixelFormats[] = 
     1.8 +Uint32 _RGBPixelFormats[] =
     1.9    {
    1.10      SDL_PIXELFORMAT_INDEX1LSB,
    1.11      SDL_PIXELFORMAT_INDEX1MSB,
    1.12 @@ -44,7 +44,7 @@
    1.13      SDL_PIXELFORMAT_BGRA8888,
    1.14      SDL_PIXELFORMAT_ARGB2101010
    1.15    };
    1.16 -char* _RGBPixelFormatsVerbose[] = 
    1.17 +char* _RGBPixelFormatsVerbose[] =
    1.18    {
    1.19      "SDL_PIXELFORMAT_INDEX1LSB",
    1.20      "SDL_PIXELFORMAT_INDEX1MSB",
    1.21 @@ -80,31 +80,31 @@
    1.22  
    1.23  /* Definition of all Non-RGB formats used to test pixel conversions */
    1.24  const int _numNonRGBPixelFormats = 5;
    1.25 -Uint32 _nonRGBPixelFormats[] = 
    1.26 +Uint32 _nonRGBPixelFormats[] =
    1.27    {
    1.28      SDL_PIXELFORMAT_YV12,
    1.29      SDL_PIXELFORMAT_IYUV,
    1.30      SDL_PIXELFORMAT_YUY2,
    1.31      SDL_PIXELFORMAT_UYVY,
    1.32 -    SDL_PIXELFORMAT_YVYU 
    1.33 +    SDL_PIXELFORMAT_YVYU
    1.34    };
    1.35 -char* _nonRGBPixelFormatsVerbose[] = 
    1.36 +char* _nonRGBPixelFormatsVerbose[] =
    1.37    {
    1.38      "SDL_PIXELFORMAT_YV12",
    1.39      "SDL_PIXELFORMAT_IYUV",
    1.40      "SDL_PIXELFORMAT_YUY2",
    1.41      "SDL_PIXELFORMAT_UYVY",
    1.42 -    "SDL_PIXELFORMAT_YVYU" 
    1.43 +    "SDL_PIXELFORMAT_YVYU"
    1.44    };
    1.45  
    1.46  /* Definition of some invalid formats for negative tests */
    1.47  const int _numInvalidPixelFormats = 2;
    1.48 -Uint32 _invalidPixelFormats[] = 
    1.49 +Uint32 _invalidPixelFormats[] =
    1.50    {
    1.51      0xfffffffe,
    1.52      0xffffffff
    1.53    };
    1.54 -char* _invalidPixelFormatsVerbose[] = 
    1.55 +char* _invalidPixelFormatsVerbose[] =
    1.56    {
    1.57      "SDL_PIXELFORMAT_UNKNOWN",
    1.58      "SDL_PIXELFORMAT_UNKNOWN"
    1.59 @@ -116,14 +116,14 @@
    1.60   * @brief Call to SDL_AllocFormat and SDL_FreeFormat
    1.61   *
    1.62   * @sa http://wiki.libsdl.org/moin.fcg/SDL_AllocFormat
    1.63 - * @sa http://wiki.libsdl.org/moin.fcg/SDL_FreeFormat 
    1.64 + * @sa http://wiki.libsdl.org/moin.fcg/SDL_FreeFormat
    1.65   */
    1.66  int
    1.67  pixels_allocFreeFormat(void *arg)
    1.68  {
    1.69    const char *unknownFormat = "SDL_PIXELFORMAT_UNKNOWN";
    1.70    const char *expectedError = "Parameter 'format' is invalid";
    1.71 -  const char *error;   
    1.72 +  const char *error;
    1.73    int i;
    1.74    Uint32 format;
    1.75    Uint32 masks;
    1.76 @@ -132,44 +132,44 @@
    1.77    /* Blank/unknown format */
    1.78    format = 0;
    1.79    SDLTest_Log("RGB Format: %s (%u)", unknownFormat, format);
    1.80 -  
    1.81 +
    1.82    /* Allocate format */
    1.83    result = SDL_AllocFormat(format);
    1.84    SDLTest_AssertPass("Call to SDL_AllocFormat()");
    1.85 -  SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");  
    1.86 +  SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");
    1.87    if (result != NULL) {
    1.88 -    SDLTest_AssertCheck(result->format == format, "Verify value of result.format; expected: %u, got %u", format, result->format);  
    1.89 -    SDLTest_AssertCheck(result->BitsPerPixel == 0, "Verify value of result.BitsPerPixel; expected: 0, got %u", result->BitsPerPixel);  
    1.90 -    SDLTest_AssertCheck(result->BytesPerPixel == 0, "Verify value of result.BytesPerPixel; expected: 0, got %u", result->BytesPerPixel);  
    1.91 +    SDLTest_AssertCheck(result->format == format, "Verify value of result.format; expected: %u, got %u", format, result->format);
    1.92 +    SDLTest_AssertCheck(result->BitsPerPixel == 0, "Verify value of result.BitsPerPixel; expected: 0, got %u", result->BitsPerPixel);
    1.93 +    SDLTest_AssertCheck(result->BytesPerPixel == 0, "Verify value of result.BytesPerPixel; expected: 0, got %u", result->BytesPerPixel);
    1.94      masks = result->Rmask | result->Gmask | result->Bmask | result->Amask;
    1.95      SDLTest_AssertCheck(masks == 0, "Verify value of result.[RGBA]mask combined; expected: 0, got %u", masks);
    1.96 -      
    1.97 +
    1.98      /* Deallocate again */
    1.99      SDL_FreeFormat(result);
   1.100 -    SDLTest_AssertPass("Call to SDL_FreeFormat()");          
   1.101 +    SDLTest_AssertPass("Call to SDL_FreeFormat()");
   1.102    }
   1.103  
   1.104    /* RGB formats */
   1.105    for (i = 0; i < _numRGBPixelFormats; i++) {
   1.106      format = _RGBPixelFormats[i];
   1.107      SDLTest_Log("RGB Format: %s (%u)", _RGBPixelFormatsVerbose[i], format);
   1.108 -  
   1.109 +
   1.110      /* Allocate format */
   1.111      result = SDL_AllocFormat(format);
   1.112      SDLTest_AssertPass("Call to SDL_AllocFormat()");
   1.113 -    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");  
   1.114 +    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");
   1.115      if (result != NULL) {
   1.116 -      SDLTest_AssertCheck(result->format == format, "Verify value of result.format; expected: %u, got %u", format, result->format);  
   1.117 -      SDLTest_AssertCheck(result->BitsPerPixel > 0, "Verify value of result.BitsPerPixel; expected: >0, got %u", result->BitsPerPixel);  
   1.118 -      SDLTest_AssertCheck(result->BytesPerPixel > 0, "Verify value of result.BytesPerPixel; expected: >0, got %u", result->BytesPerPixel);  
   1.119 -      if (result->palette != NULL) {      
   1.120 +      SDLTest_AssertCheck(result->format == format, "Verify value of result.format; expected: %u, got %u", format, result->format);
   1.121 +      SDLTest_AssertCheck(result->BitsPerPixel > 0, "Verify value of result.BitsPerPixel; expected: >0, got %u", result->BitsPerPixel);
   1.122 +      SDLTest_AssertCheck(result->BytesPerPixel > 0, "Verify value of result.BytesPerPixel; expected: >0, got %u", result->BytesPerPixel);
   1.123 +      if (result->palette != NULL) {
   1.124           masks = result->Rmask | result->Gmask | result->Bmask | result->Amask;
   1.125           SDLTest_AssertCheck(masks > 0, "Verify value of result.[RGBA]mask combined; expected: >0, got %u", masks);
   1.126        }
   1.127 -      
   1.128 +
   1.129        /* Deallocate again */
   1.130        SDL_FreeFormat(result);
   1.131 -      SDLTest_AssertPass("Call to SDL_FreeFormat()");          
   1.132 +      SDLTest_AssertPass("Call to SDL_FreeFormat()");
   1.133      }
   1.134    }
   1.135  
   1.136 @@ -177,28 +177,28 @@
   1.137    for (i = 0; i < _numNonRGBPixelFormats; i++) {
   1.138      format = _nonRGBPixelFormats[i];
   1.139      SDLTest_Log("non-RGB Format: %s (%u)", _nonRGBPixelFormatsVerbose[i], format);
   1.140 -  
   1.141 +
   1.142      /* Try to allocate format */
   1.143      result = SDL_AllocFormat(format);
   1.144      SDLTest_AssertPass("Call to SDL_AllocFormat()");
   1.145 -    SDLTest_AssertCheck(result == NULL, "Verify result is NULL");  
   1.146 +    SDLTest_AssertCheck(result == NULL, "Verify result is NULL");
   1.147    }
   1.148 -  
   1.149 +
   1.150    /* Negative cases */
   1.151 -  
   1.152 -  /* Invalid Formats */  
   1.153 +
   1.154 +  /* Invalid Formats */
   1.155    for (i = 0; i < _numInvalidPixelFormats; i++) {
   1.156      SDL_ClearError();
   1.157      SDLTest_AssertPass("Call to SDL_ClearError()");
   1.158      format = _invalidPixelFormats[i];
   1.159      result = SDL_AllocFormat(format);
   1.160      SDLTest_AssertPass("Call to SDL_AllocFormat(%u)", format);
   1.161 -    SDLTest_AssertCheck(result == NULL, "Verify result is NULL");  
   1.162 +    SDLTest_AssertCheck(result == NULL, "Verify result is NULL");
   1.163      error = SDL_GetError();
   1.164      SDLTest_AssertPass("Call to SDL_GetError()");
   1.165      SDLTest_AssertCheck(error != NULL, "Validate that error message was not NULL");
   1.166      if (error != NULL) {
   1.167 -      SDLTest_AssertCheck(SDL_strcmp(error, expectedError) == 0, 
   1.168 +      SDLTest_AssertCheck(SDL_strcmp(error, expectedError) == 0,
   1.169            "Validate error message, expected: '%s', got: '%s'", expectedError, error);
   1.170      }
   1.171    }
   1.172 @@ -212,10 +212,10 @@
   1.173    SDLTest_AssertPass("Call to SDL_GetError()");
   1.174    SDLTest_AssertCheck(error != NULL, "Validate that error message was not NULL");
   1.175    if (error != NULL) {
   1.176 -      SDLTest_AssertCheck(SDL_strcmp(error, expectedError) == 0, 
   1.177 +      SDLTest_AssertCheck(SDL_strcmp(error, expectedError) == 0,
   1.178            "Validate error message, expected: '%s', got: '%s'", expectedError, error);
   1.179    }
   1.180 -  
   1.181 +
   1.182    return TEST_COMPLETED;
   1.183  }
   1.184  
   1.185 @@ -228,7 +228,7 @@
   1.186  pixels_getPixelFormatName(void *arg)
   1.187  {
   1.188    const char *unknownFormat = "SDL_PIXELFORMAT_UNKNOWN";
   1.189 -  const char *error;   
   1.190 +  const char *error;
   1.191    int i;
   1.192    Uint32 format;
   1.193    char* result;
   1.194 @@ -236,14 +236,14 @@
   1.195    /* Blank/undefined format */
   1.196    format = 0;
   1.197    SDLTest_Log("RGB Format: %s (%u)", unknownFormat, format);
   1.198 -  
   1.199 +
   1.200    /* Get name of format */
   1.201    result = (char *)SDL_GetPixelFormatName(format);
   1.202    SDLTest_AssertPass("Call to SDL_GetPixelFormatName()");
   1.203 -  SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");  
   1.204 +  SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");
   1.205    if (result != NULL) {
   1.206        SDLTest_AssertCheck(SDL_strlen(result) > 0, "Verify result is non-empty");
   1.207 -      SDLTest_AssertCheck(SDL_strcmp(result, unknownFormat) == 0, 
   1.208 +      SDLTest_AssertCheck(SDL_strcmp(result, unknownFormat) == 0,
   1.209          "Verify result text; expected: %s, got %s", unknownFormat, result);
   1.210    }
   1.211  
   1.212 @@ -251,14 +251,14 @@
   1.213    for (i = 0; i < _numRGBPixelFormats; i++) {
   1.214      format = _RGBPixelFormats[i];
   1.215      SDLTest_Log("RGB Format: %s (%u)", _RGBPixelFormatsVerbose[i], format);
   1.216 -  
   1.217 +
   1.218      /* Get name of format */
   1.219      result = (char *)SDL_GetPixelFormatName(format);
   1.220      SDLTest_AssertPass("Call to SDL_GetPixelFormatName()");
   1.221 -    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");  
   1.222 +    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");
   1.223      if (result != NULL) {
   1.224        SDLTest_AssertCheck(SDL_strlen(result) > 0, "Verify result is non-empty");
   1.225 -      SDLTest_AssertCheck(SDL_strcmp(result, _RGBPixelFormatsVerbose[i]) == 0, 
   1.226 +      SDLTest_AssertCheck(SDL_strcmp(result, _RGBPixelFormatsVerbose[i]) == 0,
   1.227          "Verify result text; expected: %s, got %s", _RGBPixelFormatsVerbose[i], result);
   1.228      }
   1.229    }
   1.230 @@ -267,30 +267,30 @@
   1.231    for (i = 0; i < _numNonRGBPixelFormats; i++) {
   1.232      format = _nonRGBPixelFormats[i];
   1.233      SDLTest_Log("non-RGB Format: %s (%u)", _nonRGBPixelFormatsVerbose[i], format);
   1.234 -  
   1.235 +
   1.236      /* Get name of format */
   1.237      result = (char *)SDL_GetPixelFormatName(format);
   1.238      SDLTest_AssertPass("Call to SDL_GetPixelFormatName()");
   1.239 -    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");  
   1.240 +    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");
   1.241      if (result != NULL) {
   1.242        SDLTest_AssertCheck(SDL_strlen(result) > 0, "Verify result is non-empty");
   1.243 -      SDLTest_AssertCheck(SDL_strcmp(result, _nonRGBPixelFormatsVerbose[i]) == 0, 
   1.244 +      SDLTest_AssertCheck(SDL_strcmp(result, _nonRGBPixelFormatsVerbose[i]) == 0,
   1.245          "Verify result text; expected: %s, got %s", _nonRGBPixelFormatsVerbose[i], result);
   1.246      }
   1.247    }
   1.248 -  
   1.249 +
   1.250    /* Negative cases */
   1.251 -  
   1.252 -  /* Invalid Formats */  
   1.253 +
   1.254 +  /* Invalid Formats */
   1.255    SDL_ClearError();
   1.256    SDLTest_AssertPass("Call to SDL_ClearError()");
   1.257    for (i = 0; i < _numInvalidPixelFormats; i++) {
   1.258      format = _invalidPixelFormats[i];
   1.259      result = (char *)SDL_GetPixelFormatName(format);
   1.260      SDLTest_AssertPass("Call to SDL_GetPixelFormatName(%u)", format);
   1.261 -    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");  
   1.262 +    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");
   1.263      if (result != NULL) {
   1.264 -      SDLTest_AssertCheck(SDL_strlen(result) > 0, 
   1.265 +      SDLTest_AssertCheck(SDL_strlen(result) > 0,
   1.266          "Verify result is non-empty; got: %s", result);
   1.267        SDLTest_AssertCheck(SDL_strcmp(result, _invalidPixelFormatsVerbose[i]) == 0,
   1.268          "Validate name is UNKNOWN, expected: '%s', got: '%s'", _invalidPixelFormatsVerbose[i], result);
   1.269 @@ -314,14 +314,14 @@
   1.270  {
   1.271    const char *expectedError1 = "Parameter 'ncolors' is invalid";
   1.272    const char *expectedError2 = "Parameter 'palette' is invalid";
   1.273 -  const char *error;   
   1.274 +  const char *error;
   1.275    int variation;
   1.276    int i;
   1.277    int ncolors;
   1.278    SDL_Palette* result;
   1.279  
   1.280    /* Allocate palette */
   1.281 -  for (variation = 1; variation <= 3; variation++) {  
   1.282 +  for (variation = 1; variation <= 3; variation++) {
   1.283      switch (variation) {
   1.284        /* Just one color */
   1.285        case 1:
   1.286 @@ -339,28 +339,28 @@
   1.287  
   1.288      result = SDL_AllocPalette(ncolors);
   1.289      SDLTest_AssertPass("Call to SDL_AllocPalette(%d)", ncolors);
   1.290 -    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");  
   1.291 +    SDLTest_AssertCheck(result != NULL, "Verify result is not NULL");
   1.292      if (result != NULL) {
   1.293 -      SDLTest_AssertCheck(result->ncolors == ncolors, "Verify value of result.ncolors; expected: %u, got %u", ncolors, result->ncolors);  
   1.294 +      SDLTest_AssertCheck(result->ncolors == ncolors, "Verify value of result.ncolors; expected: %u, got %u", ncolors, result->ncolors);
   1.295        if (result->ncolors > 0) {
   1.296          SDLTest_AssertCheck(result->colors != NULL, "Verify value of result.colors is not NULL");
   1.297          if (result->colors != NULL) {
   1.298            for(i = 0; i < result->ncolors; i++) {
   1.299 -            SDLTest_AssertCheck(result->colors[i].r == 255, "Verify value of result.colors[%d].r; expected: 255, got %u", i, result->colors[i].r);  
   1.300 -            SDLTest_AssertCheck(result->colors[i].g == 255, "Verify value of result.colors[%d].g; expected: 255, got %u", i, result->colors[i].g);  
   1.301 -            SDLTest_AssertCheck(result->colors[i].b == 255, "Verify value of result.colors[%d].b; expected: 255, got %u", i, result->colors[i].b);  
   1.302 +            SDLTest_AssertCheck(result->colors[i].r == 255, "Verify value of result.colors[%d].r; expected: 255, got %u", i, result->colors[i].r);
   1.303 +            SDLTest_AssertCheck(result->colors[i].g == 255, "Verify value of result.colors[%d].g; expected: 255, got %u", i, result->colors[i].g);
   1.304 +            SDLTest_AssertCheck(result->colors[i].b == 255, "Verify value of result.colors[%d].b; expected: 255, got %u", i, result->colors[i].b);
   1.305             }
   1.306 -         } 
   1.307 +         }
   1.308        }
   1.309 -      
   1.310 +
   1.311        /* Deallocate again */
   1.312        SDL_FreePalette(result);
   1.313 -      SDLTest_AssertPass("Call to SDL_FreePalette()");          
   1.314 +      SDLTest_AssertPass("Call to SDL_FreePalette()");
   1.315      }
   1.316    }
   1.317  
   1.318    /* Negative cases */
   1.319 -    
   1.320 +
   1.321    /* Invalid number of colors */
   1.322    for (ncolors = 0; ncolors > -3; ncolors--) {
   1.323      SDL_ClearError();
   1.324 @@ -372,7 +372,7 @@
   1.325      SDLTest_AssertPass("Call to SDL_GetError()");
   1.326      SDLTest_AssertCheck(error != NULL, "Validate that error message was not NULL");
   1.327      if (error != NULL) {
   1.328 -      SDLTest_AssertCheck(SDL_strcmp(error, expectedError1) == 0, 
   1.329 +      SDLTest_AssertCheck(SDL_strcmp(error, expectedError1) == 0,
   1.330            "Validate error message, expected: '%s', got: '%s'", expectedError1, error);
   1.331      }
   1.332    }
   1.333 @@ -386,10 +386,10 @@
   1.334    SDLTest_AssertPass("Call to SDL_GetError()");
   1.335    SDLTest_AssertCheck(error != NULL, "Validate that error message was not NULL");
   1.336    if (error != NULL) {
   1.337 -      SDLTest_AssertCheck(SDL_strcmp(error, expectedError2) == 0, 
   1.338 +      SDLTest_AssertCheck(SDL_strcmp(error, expectedError2) == 0,
   1.339            "Validate error message, expected: '%s', got: '%s'", expectedError2, error);
   1.340    }
   1.341 -    
   1.342 +
   1.343    return TEST_COMPLETED;
   1.344  }
   1.345  
   1.346 @@ -403,7 +403,7 @@
   1.347  {
   1.348    const char *expectedError1 = "Parameter 'gamma' is invalid";
   1.349    const char *expectedError2 = "Parameter 'ramp' is invalid";
   1.350 -  const char *error;   
   1.351 +  const char *error;
   1.352    float gamma;
   1.353    Uint16 *ramp;
   1.354    int variation;
   1.355 @@ -415,29 +415,29 @@
   1.356    ramp = (Uint16 *)SDL_malloc(256 * sizeof(Uint16));
   1.357    SDLTest_AssertCheck(ramp != NULL, "Validate temp ramp array could be allocated");
   1.358    if (ramp == NULL) return TEST_ABORTED;
   1.359 -  
   1.360 +
   1.361    /* Make call with different gamma values */
   1.362    for (variation = 0; variation < 4; variation++) {
   1.363      switch (variation) {
   1.364        /* gamma = 0 all black */
   1.365 -      case 0:      
   1.366 +      case 0:
   1.367          gamma = 0.0f;
   1.368          break;
   1.369        /* gamma = 1 identity */
   1.370        case 1:
   1.371          gamma = 1.0f;
   1.372          break;
   1.373 -      /* gamma = [0.2,0.8] normal range */  
   1.374 +      /* gamma = [0.2,0.8] normal range */
   1.375        case 2:
   1.376          gamma = 0.2f + 0.8f * SDLTest_RandomUnitFloat();
   1.377          break;
   1.378 -      /* gamma = >1.1 non-standard range */  
   1.379 +      /* gamma = >1.1 non-standard range */
   1.380        case 3:
   1.381          gamma = 1.1f + SDLTest_RandomUnitFloat();
   1.382          break;
   1.383      }
   1.384  
   1.385 -    /* Make call and check that values were updated */  
   1.386 +    /* Make call and check that values were updated */
   1.387      for (i = 0; i < 256; i++) ramp[i] = magic;
   1.388      SDL_CalculateGammaRamp(gamma, ramp);
   1.389      SDLTest_AssertPass("Call to SDL_CalculateGammaRamp(%f)", gamma);
   1.390 @@ -460,7 +460,7 @@
   1.391          break;
   1.392      }
   1.393    }
   1.394 -  
   1.395 +
   1.396    /* Negative cases */
   1.397    SDL_ClearError();
   1.398    SDLTest_AssertPass("Call to SDL_ClearError()");
   1.399 @@ -472,7 +472,7 @@
   1.400    SDLTest_AssertPass("Call to SDL_GetError()");
   1.401    SDLTest_AssertCheck(error != NULL, "Validate that error message was not NULL");
   1.402    if (error != NULL) {
   1.403 -      SDLTest_AssertCheck(SDL_strcmp(error, expectedError1) == 0, 
   1.404 +      SDLTest_AssertCheck(SDL_strcmp(error, expectedError1) == 0,
   1.405            "Validate error message, expected: '%s', got: '%s'", expectedError1, error);
   1.406    }
   1.407    changed = 0;
   1.408 @@ -485,14 +485,14 @@
   1.409    SDLTest_AssertPass("Call to SDL_GetError()");
   1.410    SDLTest_AssertCheck(error != NULL, "Validate that error message was not NULL");
   1.411    if (error != NULL) {
   1.412 -      SDLTest_AssertCheck(SDL_strcmp(error, expectedError2) == 0, 
   1.413 +      SDLTest_AssertCheck(SDL_strcmp(error, expectedError2) == 0,
   1.414            "Validate error message, expected: '%s', got: '%s'", expectedError2, error);
   1.415    }
   1.416 -  
   1.417 +
   1.418    /* Cleanup */
   1.419    SDL_free(ramp);
   1.420 -    
   1.421 -    
   1.422 +
   1.423 +
   1.424    return TEST_COMPLETED;
   1.425  }
   1.426  
   1.427 @@ -500,26 +500,26 @@
   1.428  
   1.429  /* Pixels test cases */
   1.430  static const SDLTest_TestCaseReference pixelsTest1 =
   1.431 -		{ (SDLTest_TestCaseFp)pixels_allocFreeFormat, "pixels_allocFreeFormat", "Call to SDL_AllocFormat and SDL_FreeFormat", TEST_ENABLED };
   1.432 +        { (SDLTest_TestCaseFp)pixels_allocFreeFormat, "pixels_allocFreeFormat", "Call to SDL_AllocFormat and SDL_FreeFormat", TEST_ENABLED };
   1.433  
   1.434  static const SDLTest_TestCaseReference pixelsTest2 =
   1.435 -		{ (SDLTest_TestCaseFp)pixels_allocFreePalette, "pixels_allocFreePalette", "Call to SDL_AllocPalette and SDL_FreePalette", TEST_ENABLED };
   1.436 +        { (SDLTest_TestCaseFp)pixels_allocFreePalette, "pixels_allocFreePalette", "Call to SDL_AllocPalette and SDL_FreePalette", TEST_ENABLED };
   1.437  
   1.438  static const SDLTest_TestCaseReference pixelsTest3 =
   1.439 -		{ (SDLTest_TestCaseFp)pixels_calcGammaRamp, "pixels_calcGammaRamp", "Call to SDL_CalculateGammaRamp", TEST_ENABLED };
   1.440 +        { (SDLTest_TestCaseFp)pixels_calcGammaRamp, "pixels_calcGammaRamp", "Call to SDL_CalculateGammaRamp", TEST_ENABLED };
   1.441  
   1.442  static const SDLTest_TestCaseReference pixelsTest4 =
   1.443 -		{ (SDLTest_TestCaseFp)pixels_getPixelFormatName, "pixels_getPixelFormatName", "Call to SDL_GetPixelFormatName", TEST_ENABLED };
   1.444 +        { (SDLTest_TestCaseFp)pixels_getPixelFormatName, "pixels_getPixelFormatName", "Call to SDL_GetPixelFormatName", TEST_ENABLED };
   1.445  
   1.446  /* Sequence of Pixels test cases */
   1.447  static const SDLTest_TestCaseReference *pixelsTests[] =  {
   1.448 -	&pixelsTest1, &pixelsTest2, &pixelsTest3, &pixelsTest4, NULL
   1.449 +    &pixelsTest1, &pixelsTest2, &pixelsTest3, &pixelsTest4, NULL
   1.450  };
   1.451  
   1.452  /* Pixels test suite (global) */
   1.453  SDLTest_TestSuiteReference pixelsTestSuite = {
   1.454 -	"Pixels",
   1.455 -	NULL,
   1.456 -	pixelsTests,
   1.457 -	NULL
   1.458 +    "Pixels",
   1.459 +    NULL,
   1.460 +    pixelsTests,
   1.461 +    NULL
   1.462  };