test/testautomation.c
changeset 7191 75360622e65f
parent 6830 0cd3e2e9b2c5
child 7517 965d57022c01
     1.1 --- a/test/testautomation.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/test/testautomation.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -57,27 +57,27 @@
     1.4                  if (argv[i + 1]) {
     1.5                      testIterations = SDL_atoi(argv[i + 1]);
     1.6                      if (testIterations < 1) testIterations = 1;
     1.7 -                    consumed = 2;                    
     1.8 +                    consumed = 2;
     1.9                  }
    1.10 -            } 
    1.11 +            }
    1.12              else if (SDL_strcasecmp(argv[i], "--execKey") == 0) {
    1.13                  if (argv[i + 1]) {
    1.14                      SDL_sscanf(argv[i + 1], "%llu", (long long unsigned int *)&userExecKey);
    1.15 -                    consumed = 2;                    
    1.16 +                    consumed = 2;
    1.17                  }
    1.18 -            } 
    1.19 +            }
    1.20              else if (SDL_strcasecmp(argv[i], "--seed") == 0) {
    1.21                  if (argv[i + 1]) {
    1.22                      userRunSeed = SDL_strdup(argv[i + 1]);
    1.23                      consumed = 2;
    1.24                  }
    1.25 -            } 
    1.26 +            }
    1.27              else if (SDL_strcasecmp(argv[i], "--filter") == 0) {
    1.28                  if (argv[i + 1]) {
    1.29                      filter = SDL_strdup(argv[i + 1]);
    1.30                      consumed = 2;
    1.31                  }
    1.32 -            } 
    1.33 +            }
    1.34          }
    1.35          if (consumed < 0) {
    1.36              fprintf(stderr,
    1.37 @@ -85,11 +85,11 @@
    1.38                      argv[0], SDLTest_CommonUsage(state));
    1.39              quit(1);
    1.40          }
    1.41 -        
    1.42 +
    1.43          i += consumed;
    1.44      }
    1.45  
    1.46 -    /* Initialize common state */    
    1.47 +    /* Initialize common state */
    1.48      if (!SDLTest_CommonInit(state)) {
    1.49          quit(2);
    1.50      }
    1.51 @@ -104,7 +104,7 @@
    1.52      /* Call Harness */
    1.53      result = SDLTest_RunSuites(testSuites, (const char *)userRunSeed, userExecKey, (const char *)filter, testIterations);
    1.54  
    1.55 -    /* Empty event queue */    
    1.56 +    /* Empty event queue */
    1.57      done = 0;
    1.58      for (i=0; i<100; i++)  {
    1.59        while (SDL_PollEvent(&event)) {
    1.60 @@ -120,9 +120,9 @@
    1.61      if (filter != NULL) {
    1.62          SDL_free(filter);
    1.63      }
    1.64 -        
    1.65 +
    1.66      /* Shutdown everything */
    1.67 -    quit(result);        
    1.68 +    quit(result);
    1.69      return(result);
    1.70  }
    1.71