libsdl-org / sdl2-compat

An SDL2 compatibility layer that uses SDL3 behind the scenes.
zlib License
80 stars 19 forks source link

testautomation: log_testHint: 'Check result value, expected: 1, got: 0': Failed #223

Closed smcv closed 2 months ago

smcv commented 2 months ago

With libsdl-org/SDL@231ea07 and libsdl-org/sdl2-compat@6981f82, I'm seeing this build-time test failure:

13: DEBUG:  09/17/24 11:33:14: ===== Test Suite 8: 'Log' started                  
13: DEBUG:  09/17/24 11:33:14: ----- Test Case 8.1: 'log_testHint' started        
13: DEBUG:  09/17/24 11:33:14: Test Description: 'Check SDL_HINT_LOGGING functionality'
13: DEBUG:  09/17/24 11:33:14: Test Iteration 1: execKey 639200660210330998       
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_SetHint(SDL_HINT_LOGGING, NULL)': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, "test")': Passed
13: WARN: 09/17/24 11:33:14: Assert 'Check result value, expected: 1, got: 0': Failed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "test")': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'Check result value, expected: 0, got: 0': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_SetHint(SDL_HINT_LOGGING, "debug")': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "test")': Passed
13: WARN: 09/17/24 11:33:14: Assert 'Check result value, expected: 1, got: 0': Failed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_VERBOSE, "test")': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'Check result value, expected: 0, got: 0': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_SetHint(SDL_HINT_LOGGING, "system=debug")': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "test")': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'Check result value, expected: 0, got: 0': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_LogMessage(SDL_LOG_CATEGORY_SYSTEM, SDL_LOG_PRIORITY_DEBUG, "test")': Passed
13: WARN: 09/17/24 11:33:14: Assert 'Check result value, expected: 1, got: 0': Failed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_LogMessage(SDL_LOG_CATEGORY_SYSTEM, SDL_LOG_PRIORITY_VERBOSE, "test")': Passed
13: DEBUG:  09/17/24 11:33:14: Assert 'Check result value, expected: 0, got: 0': Passed
13: WARN: 09/17/24 11:33:14: Assert 'Check result value, expected: 1, got: 0': Failed
13: WARN: 09/17/24 11:33:14: Assert 'Check result value, expected: 1, got: 0': Failed
13: WARN: 09/17/24 11:33:14: Assert 'Check result value, expected: 1, got: 0': Failed
13: DEBUG:  09/17/24 11:33:14: Assert 'SDL_SetHint(SDL_HINT_LOGGING, "0=4,3=2,2=0,*=3")': Passed
smcv commented 2 months ago

Perhaps this needs updating for the addition of SDL_LOG_PRIORITY_TRACE, which throws off all the numeric values in SDL_HINT_LOGGING?

smcv commented 2 months ago

cc @slouken

slouken commented 2 months ago

Yep, sdl2-compat needs to be updated. It's on my TODO list.