include/SDL_test_harness.h
changeset 6721 53b71f45a53a
parent 6717 2acd95060548
child 6756 398073b195bb
     1.1 --- a/include/SDL_test_harness.h	Sat Dec 01 23:42:17 2012 -0800
     1.2 +++ b/include/SDL_test_harness.h	Tue Dec 04 19:21:10 2012 -0800
     1.3 @@ -49,22 +49,17 @@
     1.4  #define TEST_ENABLED  1
     1.5  #define TEST_DISABLED 0
     1.6  
     1.7 -//! Definitions of assert results
     1.8 -#define ASSERT_PASS		1
     1.9 -#define ASSERT_FAIL		0
    1.10 -
    1.11  //! Definition of all the possible test return values of the test case method
    1.12  #define TEST_ABORTED		-1
    1.13  #define TEST_COMPLETED		 0
    1.14  #define TEST_SKIPPED		 1
    1.15  
    1.16  //! Definition of all the possible test results for the harness
    1.17 -#define TEST_RESULT_PASSED			0
    1.18 -#define TEST_RESULT_FAILED			1
    1.19 +#define TEST_RESULT_PASSED				0
    1.20 +#define TEST_RESULT_FAILED				1
    1.21  #define TEST_RESULT_NO_ASSERT			2
    1.22 -#define TEST_RESULT_SKIPPED			3
    1.23 -#define TEST_RESULT_KILLED			4
    1.24 -#define TEST_RESULT_SETUP_FAILURE		5
    1.25 +#define TEST_RESULT_SKIPPED				3
    1.26 +#define TEST_RESULT_SETUP_FAILURE		4
    1.27  
    1.28  //!< Function pointer to a test case setup function (run before every test)
    1.29  typedef void (*SDLTest_TestCaseSetUpFp)(void *arg);
    1.30 @@ -92,7 +87,7 @@
    1.31  /**
    1.32   * Holds information about a test suite (multiple test cases).
    1.33   */
    1.34 -typedef struct TestSuiteReference {
    1.35 +typedef struct SDLTest_TestSuiteReference {
    1.36  	/*!< "PlatformSuite" */
    1.37  	char *name;
    1.38  	/*!< The function that is run before each test. NULL skips. */
    1.39 @@ -101,7 +96,7 @@
    1.40  	const SDLTest_TestCaseReference **testCases;
    1.41  	/*!< The function that is run after each test. NULL skips. */
    1.42  	SDLTest_TestCaseTearDownFp testTearDown;
    1.43 -} TestSuiteReference;
    1.44 +} SDLTest_TestSuiteReference;
    1.45  
    1.46  /* Ends C function definitions when using C++ */
    1.47  #ifdef __cplusplus