21#if defined SDL_JOYSTICK_DISABLED || defined SDL_HAPTIC_DISABLED
24 int enabled_subsystems;
29 enabled_subsystems =
SDL_WasInit(initialized_subsystems);
30 SDLTest_AssertCheck( enabled_subsystems == initialized_subsystems,
"SDL_WasInit(SDL_INIT_EVERYTHING) contains all systems (%i)", enabled_subsystems );
34 enabled_subsystems =
SDL_WasInit(initialized_subsystems);
35 SDLTest_AssertCheck( enabled_subsystems == 0,
"SDL_Quit should shut down everything (%i)", enabled_subsystems );
49#if defined SDL_JOYSTICK_DISABLED || defined SDL_HAPTIC_DISABLED || defined SDL_GAMECONTROLLER_DISABLED
56 int initialized_system;
57 int subsystem = subsystems[
i];
63 SDLTest_AssertCheck( (initialized_system & subsystem) != 0,
"SDL_WasInit(%x) should be true (%x)", subsystem, initialized_system );
77#if defined SDL_JOYSTICK_DISABLED || defined SDL_GAMECONTROLLER_DISABLED
80 int initialized_system;
102#if defined SDL_JOYSTICK_DISABLED || defined SDL_GAMECONTROLLER_DISABLED
105 int initialized_system;
#define SDL_INIT_GAMECONTROLLER
#define SDL_INIT_JOYSTICK
#define SDL_InitSubSystem
#define SDL_QuitSubSystem
#define SDL_arraysize(array)
int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(2)
Assert for test cases that logs but does not break execution flow on failures. Updates assertion coun...
int(* SDLTest_TestCaseFp)(void *arg)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
static const SDLTest_TestCaseReference mainTest1
static const SDLTest_TestCaseReference * mainTests[]
static int main_testImpliedJoystickInit(void *arg)
static const SDLTest_TestCaseReference mainTest3
static int main_testInitQuitSubSystem(void *arg)
static int main_testInitQuitJoystickHaptic(void *arg)
static const SDLTest_TestCaseReference mainTest4
SDLTest_TestSuiteReference mainTestSuite
static int main_testImpliedJoystickQuit(void *arg)
static const SDLTest_TestCaseReference mainTest2
const int joy_and_controller