On Sun Jul 16 22:42:16 2023 +0000, Davide Beatrici wrote:
Thanks for investigating! I actually added the trace message to reveal the weird behavior, by comparing the output produced by the good and the broken code. However, the result was (and still is) confusing as I would expect other session related tests to fail as well...
My suspicion is that there are two different session list instances.
`audiosessionmanager.c` and `client.c`, the only places where `get_audio_session`/`get_audio_session_wrapper` are used, end up getting their own session list. The only place in tests where both `IAudioSessionManager` and `IAudioClient` are used is `test_session_creation`. And because they should be using the same session list, and they're not, it fails.
Unfortunately I'm not good enough to know how to fix this >_>