libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.42k stars 1.75k forks source link

testautomation --filter audio_initOpenCloseQuitAudio fails #9330

Open madebr opened 5 months ago

madebr commented 5 months ago

now, some test seems to fails: at least 2:

--seed BM1BUVUADHUWWKPN --filter audio_initOpenCloseQuitAudio

I can reproduce the audio_initOpenCloseQuitAudio error on current main. It has something to do with jack. After 2521ba47f, running SDL_AUDIO_DRIVER=jack test/testautomation displays:

Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
INFO: Couldn't initialize audio driver: Can't open JACK client

I'm not sure this is a problem with SDL or my system.

madebr commented 5 months ago

@slouken Perhaps https://github.com/libsdl-org/SDL/commit/2521ba47fe2523cf5f6d0d65437c239f67a96255 is wrong? Where do backends set an error message when failing to initialize?