dmusic/tests: Skip test_default_gm_collection if gm.dls is missing.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55688
This commit is contained in:
Rémi Bernon 2023-10-23 22:57:25 +02:00 committed by Alexandre Julliard
parent bbdea3afc3
commit c8b9a2dcfd

View file

@ -1608,6 +1608,11 @@ static void test_default_gm_collection(void)
ok(hr == S_OK, "got %#lx\n", hr);
hr = IDirectMusicLoader_GetObject(loader, &desc, &IID_IDirectMusicCollection, (void **)&collection);
if (hr == DMUS_E_LOADER_NOFILENAME)
{
skip("Failed to open default GM collection, skipping tests. Missing system SoundFont?\n");
goto skip_tests;
}
ok(hr == S_OK, "got %#lx\n", hr);
for (i = 0; hr == S_OK && i < ARRAY_SIZE(results); i++)
@ -1635,6 +1640,8 @@ static void test_default_gm_collection(void)
}
IDirectMusicCollection_Release(collection);
skip_tests:
IDirectMusicLoader_Release(loader);
}