test/testautomation_platform.c
changeset 7678 286c42d7c5ed
parent 7663 53fe1b64eb2d
child 8148 56ba41ac64fe
equal deleted inserted replaced
7677:871d43c6968a 7678:286c42d7c5ed
   100              value64, SDL_Swap64(value64) );
   100              value64, SDL_Swap64(value64) );
   101 
   101 
   102    return TEST_COMPLETED;
   102    return TEST_COMPLETED;
   103 }
   103 }
   104 
   104 
   105 /*!
   105 /* !
   106  * \brief Tests SDL_GetXYZ() functions
   106  * \brief Tests SDL_GetXYZ() functions
   107  * \sa
   107  * \sa
   108  * http://wiki.libsdl.org/moin.cgi/SDL_GetPlatform
   108  * http://wiki.libsdl.org/moin.cgi/SDL_GetPlatform
   109  * http://wiki.libsdl.org/moin.cgi/SDL_GetCPUCount
   109  * http://wiki.libsdl.org/moin.cgi/SDL_GetCPUCount
   110  * http://wiki.libsdl.org/moin.cgi/SDL_GetCPUCacheLineSize
   110  * http://wiki.libsdl.org/moin.cgi/SDL_GetCPUCacheLineSize
   149    SDLTest_AssertPass("SDL_GetRevisionNumber()");
   149    SDLTest_AssertPass("SDL_GetRevisionNumber()");
   150 
   150 
   151    return TEST_COMPLETED;
   151    return TEST_COMPLETED;
   152 }
   152 }
   153 
   153 
   154 /*!
   154 /* !
   155  * \brief Tests SDL_HasXYZ() functions
   155  * \brief Tests SDL_HasXYZ() functions
   156  * \sa
   156  * \sa
   157  * http://wiki.libsdl.org/moin.cgi/SDL_Has3DNow
   157  * http://wiki.libsdl.org/moin.cgi/SDL_Has3DNow
   158  * http://wiki.libsdl.org/moin.cgi/SDL_HasAltiVec
   158  * http://wiki.libsdl.org/moin.cgi/SDL_HasAltiVec
   159  * http://wiki.libsdl.org/moin.cgi/SDL_HasMMX
   159  * http://wiki.libsdl.org/moin.cgi/SDL_HasMMX
   198    SDLTest_AssertPass("SDL_HasSSE42()");
   198    SDLTest_AssertPass("SDL_HasSSE42()");
   199 
   199 
   200    return TEST_COMPLETED;
   200    return TEST_COMPLETED;
   201 }
   201 }
   202 
   202 
   203 /*!
   203 /* !
   204  * \brief Tests SDL_GetVersion
   204  * \brief Tests SDL_GetVersion
   205  * \sa
   205  * \sa
   206  * http://wiki.libsdl.org/moin.cgi/SDL_GetVersion
   206  * http://wiki.libsdl.org/moin.cgi/SDL_GetVersion
   207  */
   207  */
   208 int platform_testGetVersion(void *arg)
   208 int platform_testGetVersion(void *arg)
   223 
   223 
   224    return TEST_COMPLETED;
   224    return TEST_COMPLETED;
   225 }
   225 }
   226 
   226 
   227 
   227 
   228 /*!
   228 /* !
   229  * \brief Tests SDL_VERSION macro
   229  * \brief Tests SDL_VERSION macro
   230  */
   230  */
   231 int platform_testSDLVersion(void *arg)
   231 int platform_testSDLVersion(void *arg)
   232 {
   232 {
   233    SDL_version compiled;
   233    SDL_version compiled;
   246 
   246 
   247    return TEST_COMPLETED;
   247    return TEST_COMPLETED;
   248 }
   248 }
   249 
   249 
   250 
   250 
   251 /*!
   251 /* !
   252  * \brief Tests default SDL_Init
   252  * \brief Tests default SDL_Init
   253  */
   253  */
   254 int platform_testDefaultInit(void *arg)
   254 int platform_testDefaultInit(void *arg)
   255 {
   255 {
   256    int ret;
   256    int ret;
   268              SDL_GetError());
   268              SDL_GetError());
   269 
   269 
   270    return TEST_COMPLETED;
   270    return TEST_COMPLETED;
   271 }
   271 }
   272 
   272 
   273 /*!
   273 /* !
   274  * \brief Tests SDL_Get/Set/ClearError
   274  * \brief Tests SDL_Get/Set/ClearError
   275  * \sa
   275  * \sa
   276  * http://wiki.libsdl.org/moin.cgi/SDL_GetError
   276  * http://wiki.libsdl.org/moin.cgi/SDL_GetError
   277  * http://wiki.libsdl.org/moin.cgi/SDL_SetError
   277  * http://wiki.libsdl.org/moin.cgi/SDL_SetError
   278  * http://wiki.libsdl.org/moin.cgi/SDL_ClearError
   278  * http://wiki.libsdl.org/moin.cgi/SDL_ClearError
   320    SDLTest_AssertPass("SDL_ClearError()");
   320    SDLTest_AssertPass("SDL_ClearError()");
   321 
   321 
   322    return TEST_COMPLETED;
   322    return TEST_COMPLETED;
   323 }
   323 }
   324 
   324 
   325 /*!
   325 /* !
   326  * \brief Tests SDL_SetError with empty input
   326  * \brief Tests SDL_SetError with empty input
   327  * \sa
   327  * \sa
   328  * http://wiki.libsdl.org/moin.cgi/SDL_SetError
   328  * http://wiki.libsdl.org/moin.cgi/SDL_SetError
   329  */
   329  */
   330 int platform_testSetErrorEmptyInput(void *arg)
   330 int platform_testSetErrorEmptyInput(void *arg)
   356    SDLTest_AssertPass("SDL_ClearError()");
   356    SDLTest_AssertPass("SDL_ClearError()");
   357 
   357 
   358    return TEST_COMPLETED;
   358    return TEST_COMPLETED;
   359 }
   359 }
   360 
   360 
   361 /*!
   361 /* !
   362  * \brief Tests SDL_SetError with invalid input
   362  * \brief Tests SDL_SetError with invalid input
   363  * \sa
   363  * \sa
   364  * http://wiki.libsdl.org/moin.cgi/SDL_SetError
   364  * http://wiki.libsdl.org/moin.cgi/SDL_SetError
   365  */
   365  */
   366 int platform_testSetErrorInvalidInput(void *arg)
   366 int platform_testSetErrorInvalidInput(void *arg)
   420    SDLTest_AssertPass("SDL_ClearError()");
   420    SDLTest_AssertPass("SDL_ClearError()");
   421 
   421 
   422    return TEST_COMPLETED;
   422    return TEST_COMPLETED;
   423 }
   423 }
   424 
   424 
   425 /*!
   425 /* !
   426  * \brief Tests SDL_GetPowerInfo
   426  * \brief Tests SDL_GetPowerInfo
   427  * \sa
   427  * \sa
   428  * http://wiki.libsdl.org/moin.cgi/SDL_GetPowerInfo
   428  * http://wiki.libsdl.org/moin.cgi/SDL_GetPowerInfo
   429  */
   429  */
   430 int platform_testGetPowerInfo(void *arg)
   430 int platform_testGetPowerInfo(void *arg)