comparison test/automated/platform/platform.c @ 3313:50848072885e

Fixed bug #705 Sami N 2009-02-21 11:15:39 PST Patches two tests that had broken format strings in their *printf()'s.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 26 Sep 2009 09:57:32 +0000
parents 245a7d79577c
children 63d4517fc4ac
comparison
equal deleted inserted replaced
3312:c91cb3f0204e 3313:50848072885e
45 int ret; 45 int ret;
46 46
47 SDL_ATbegin( "Type size" ); 47 SDL_ATbegin( "Type size" );
48 48
49 ret = plat_testSize( sizeof(Uint8), 1 ); 49 ret = plat_testSize( sizeof(Uint8), 1 );
50 if (SDL_ATvassert( ret == 0, "sizeof(Uint8) = %ul instead of 1", sizeof(Uint8) )) 50 if (SDL_ATvassert( ret == 0, "sizeof(Uint8) = %lu instead of 1", sizeof(Uint8) ))
51 return; 51 return;
52 52
53 ret = plat_testSize( sizeof(Uint16), 2 ); 53 ret = plat_testSize( sizeof(Uint16), 2 );
54 if (SDL_ATvassert( ret == 0, "sizeof(Uint16) = %ul instead of 2", sizeof(Uint16) )) 54 if (SDL_ATvassert( ret == 0, "sizeof(Uint16) = %lu instead of 2", sizeof(Uint16) ))
55 return; 55 return;
56 56
57 ret = plat_testSize( sizeof(Uint32), 4 ); 57 ret = plat_testSize( sizeof(Uint32), 4 );
58 if (SDL_ATvassert( ret == 0, "sizeof(Uint32) = %ul instead of 4", sizeof(Uint32) )) 58 if (SDL_ATvassert( ret == 0, "sizeof(Uint32) = %lu instead of 4", sizeof(Uint32) ))
59 return; 59 return;
60 60
61 #ifdef SDL_HAS_64BIT_TYPE 61 #ifdef SDL_HAS_64BIT_TYPE
62 ret = plat_testSize( sizeof(Uint64), 8 ); 62 ret = plat_testSize( sizeof(Uint64), 8 );
63 if (SDL_ATvassert( ret == 0, "sizeof(Uint64) = %ul instead of 8", sizeof(Uint64) )) 63 if (SDL_ATvassert( ret == 0, "sizeof(Uint64) = %lu instead of 8", sizeof(Uint64) ))
64 return; 64 return;
65 #endif /* SDL_HAS_64BIT_TYPE */ 65 #endif /* SDL_HAS_64BIT_TYPE */
66 66
67 SDL_ATend(); 67 SDL_ATend();
68 } 68 }