comparison test/testplatform.c @ 5124:0ec550f04bbc

Fixed test
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Jan 2011 20:51:54 -0800
parents 87f452305db4
children 6a65c1fc07af
comparison
equal deleted inserted replaced
5123:87f452305db4 5124:0ec550f04bbc
138 int 138 int
139 TestCPUInfo(SDL_bool verbose) 139 TestCPUInfo(SDL_bool verbose)
140 { 140 {
141 if (verbose) { 141 if (verbose) {
142 printf("CPU count: %d\n", SDL_GetCPUCount()); 142 printf("CPU count: %d\n", SDL_GetCPUCount());
143 printf("CPU cache line size: %d\n", SDL_GetCPUCacheLineCount()); 143 printf("CPU cache line size: %d\n", SDL_GetCPUCacheLineSize());
144 printf("RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected"); 144 printf("RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected");
145 printf("MMX %s\n", SDL_HasMMX()? "detected" : "not detected"); 145 printf("MMX %s\n", SDL_HasMMX()? "detected" : "not detected");
146 printf("MMX Ext %s\n", SDL_HasMMXExt()? "detected" : "not detected"); 146 printf("MMX Ext %s\n", SDL_HasMMXExt()? "detected" : "not detected");
147 printf("3DNow %s\n", SDL_Has3DNow()? "detected" : "not detected"); 147 printf("3DNow %s\n", SDL_Has3DNow()? "detected" : "not detected");
148 printf("3DNow Ext %s\n", 148 printf("3DNow Ext %s\n",
167 #if 0 /* enable this to test assertion failures. */ 167 #if 0 /* enable this to test assertion failures. */
168 SDL_assert_release(1 == 2); 168 SDL_assert_release(1 == 2);
169 SDL_assert_release(5 < 4); 169 SDL_assert_release(5 < 4);
170 SDL_assert_release(0 && "This is a test"); 170 SDL_assert_release(0 && "This is a test");
171 #endif 171 #endif
172 SDL_assert_release(0 && "This is a test");
173 172
174 return (0); 173 return (0);
175 } 174 }
176 175
177 int 176 int