test/testfile.c
changeset 7191 75360622e65f
parent 5535 96594ac5fd1a
child 7517 965d57022c01
     1.1 --- a/test/testfile.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/test/testfile.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -30,11 +30,11 @@
     1.4  /* WARNING ! those 2 files will be destroyed by this test program */
     1.5  
     1.6  #ifdef __IPHONEOS__
     1.7 -#define FBASENAME1	"../Documents/sdldata1" /* this file will be created during tests */
     1.8 +#define FBASENAME1  "../Documents/sdldata1" /* this file will be created during tests */
     1.9  #define FBASENAME2  "../Documents/sdldata2"     /* this file should not exist before starting test */
    1.10  #else
    1.11 -#define FBASENAME1	"sdldata1"      /* this file will be created during tests */
    1.12 -#define FBASENAME2	"sdldata2"      /* this file should not exist before starting test */
    1.13 +#define FBASENAME1  "sdldata1"      /* this file will be created during tests */
    1.14 +#define FBASENAME2  "sdldata2"      /* this file should not exist before starting test */
    1.15  #endif
    1.16  
    1.17  #ifndef NULL
    1.18 @@ -61,7 +61,7 @@
    1.19      exit(1);                    /* quit with rwops error (test failed) */
    1.20  }
    1.21  
    1.22 -#define RWOP_ERR_QUIT(x)	rwops_error_quit( __LINE__, (x) )
    1.23 +#define RWOP_ERR_QUIT(x)    rwops_error_quit( __LINE__, (x) )
    1.24  
    1.25  
    1.26  
    1.27 @@ -93,9 +93,9 @@
    1.28      printf("test1 OK\n");
    1.29  
    1.30  /* test 2 : check that inexistant file is not successfully opened/created when required */
    1.31 -/* modes : r, r+ implie that file MUST exist 
    1.32 +/* modes : r, r+ implie that file MUST exist
    1.33     modes : a, a+, w, w+ checks that it succeeds (file may not exists)
    1.34 -   
    1.35 +
    1.36   */
    1.37      rwops = SDL_RWFromFile(FBASENAME2, "rb");   /* this file doesn't exist that call must fail */
    1.38      if (rwops)
    1.39 @@ -125,8 +125,8 @@
    1.40      unlink(FBASENAME2);
    1.41      printf("test2 OK\n");
    1.42  
    1.43 -/* test 3 : creation, writing , reading, seeking, 
    1.44 -	        test : w mode, r mode, w+ mode
    1.45 +/* test 3 : creation, writing , reading, seeking,
    1.46 +            test : w mode, r mode, w+ mode
    1.47   */
    1.48      rwops = SDL_RWFromFile(FBASENAME1, "wb");   /* write only */
    1.49      if (!rwops)