# HG changeset patch # User Edgar Simo # Date 1249324081 0 # Node ID 216e258f2842e10899cd3c2fb3e92578cb6913e9 # Parent 848b5263ab050c162e10f452f6d9c4fd2fb96fc1 Added more verbosity for platform test. diff -r 848b5263ab05 -r 216e258f2842 test/automated/platform/platform.c --- a/test/automated/platform/platform.c Mon Aug 03 17:48:56 2009 +0000 +++ b/test/automated/platform/platform.c Mon Aug 03 18:28:01 2009 +0000 @@ -146,6 +146,75 @@ SDL_ATinit( "Platform" ); + /* Debug information. */ + SDL_ATprintVerbose( 1, "%s System detected\n", +#if __AIX__ + "AIX" +#elif __BEOS__ + "BeOS" +#elif __BSDI__ + "BSDI" +#elif __DREAMCAST__ + "Dreamcast" +#elif __FREEBSD__ + + "FreeBSD" +#elif __HPUX__ + "HP-UX" +#elif __IRIX__ + "Irix" +#elif __LINUX__ + "Linux" +#elif __MINT__ + "Atari MiNT" +#elif __MACOS__ + "MacOS Classic" +#elif __MACOSX__ + "Mac OS X" +#elif __NETBSD__ + "NetBSD" +#elif __OPENBSD__ + "OpenBSD" +#elif __OS2__ + "OS/2" +#elif __OSF__ + "OSF/1" +#elif __QNXNTO__ + "QNX Neutrino" +#elif __RISCOS__ + "RISC OS" +#elif __SOLARIS__ + "Solaris" +#elif __WIN32__ +#ifdef _WIN32_WCE + "Windows CE" +#else + "Windows" +#endif +#elif __IPHONEOS__ + "iPhone OS" +#else + "an unknown operating system! (see SDL_platform.h)" +#endif + ); + SDL_ATprintVerbose( 1, "System is %s endian\n", +#ifdef SDL_LIL_ENDIAN + "little" +#else + "big" +#endif + ); + SDL_ATprintVerbose( 1, "Available extensions:\n" ); + SDL_ATprintVerbose( 1, " RDTSC %s\n", SDL_HasRDTSC()? "detected" : "not detected" ); + SDL_ATprintVerbose( 1, " MMX %s\n", SDL_HasMMX()? "detected" : "not detected" ); + SDL_ATprintVerbose( 1, " MMX Ext %s\n", SDL_HasMMXExt()? "detected" : "not detected" ); + SDL_ATprintVerbose( 1, " 3DNow %s\n", SDL_Has3DNow()? "detected" : "not detected" ); + SDL_ATprintVerbose( 1, " 3DNow Ext %s\n", + SDL_Has3DNowExt()? "detected" : "not detected" ); + SDL_ATprintVerbose( 1, " SSE %s\n", SDL_HasSSE()? "detected" : "not detected" ); + SDL_ATprintVerbose( 1, " SSE2 %s\n", SDL_HasSSE2()? "detected" : "not detected" ); + SDL_ATprintVerbose( 1, " AltiVec %s\n", SDL_HasAltiVec()? "detected" : "not detected" ); + plat_testTypes(); plat_testEndian();