test/testautomation_suites.h
author Jørgen P. Tjernø <jorgen@valvesoftware.com>
Tue, 12 Feb 2013 11:47:31 -0800
changeset 6866 e74a4b282450
parent 6839 2494f667555c
child 7134 09ee216e6a25
permissions -rw-r--r--
Don't clobber refcounting in SDL_Init.

- Fixes bug 1712 by not overwriting SDL_SubsystemRefCount in SDL_Init.
- Removes the SDL_initialized variable, and makes SDL_SubsystemRefCount
the canonical source of truth for whether or not a subsystem has been
initialized.
- Refactors SDL_InitSubSystem and SDL_QuitSubSystem to use helper
functions to manage refcount.
- Adds automated tests for SDL_Init/Quit*.
- Adds SDL_bits.h which contains SDL_MostSignificantBitIndex.
     1 /**
     2  * Reference to all test suites.
     3  *
     4  */
     5 
     6 #ifndef _testsuites_h
     7 #define _testsuites_h
     8 
     9 #include "SDL_test.h"
    10 
    11 // Test collections
    12 extern SDLTest_TestSuiteReference audioTestSuite;
    13 extern SDLTest_TestSuiteReference clipboardTestSuite;
    14 extern SDLTest_TestSuiteReference eventsTestSuite;
    15 extern SDLTest_TestSuiteReference keyboardTestSuite;
    16 extern SDLTest_TestSuiteReference mainTestSuite;
    17 extern SDLTest_TestSuiteReference platformTestSuite;
    18 extern SDLTest_TestSuiteReference rectTestSuite;
    19 extern SDLTest_TestSuiteReference renderTestSuite;
    20 extern SDLTest_TestSuiteReference rwopsTestSuite;
    21 extern SDLTest_TestSuiteReference surfaceTestSuite;
    22 extern SDLTest_TestSuiteReference syswmTestSuite;
    23 extern SDLTest_TestSuiteReference sdltestTestSuite;
    24 extern SDLTest_TestSuiteReference videoTestSuite;
    25 extern SDLTest_TestSuiteReference mouseTestSuite;
    26 extern SDLTest_TestSuiteReference timerTestSuite;
    27 
    28 // All test suites
    29 SDLTest_TestSuiteReference *testSuites[] =  {
    30 	&audioTestSuite,
    31 	&clipboardTestSuite,
    32 	&eventsTestSuite,
    33 	&keyboardTestSuite,
    34 	&mainTestSuite,
    35 	&platformTestSuite,
    36 	&rectTestSuite,
    37 	&renderTestSuite,
    38 	&rwopsTestSuite,
    39 	&surfaceTestSuite,
    40 	&syswmTestSuite,
    41 	&sdltestTestSuite,
    42 	&videoTestSuite,
    43 	&mouseTestSuite,
    44 	&timerTestSuite,
    45 	NULL
    46 };
    47 
    48 #endif