13
0

Identify surfaces by ID (not name)

This commit is contained in:
Robin Gareus 2023-01-02 21:15:19 +01:00
parent bf7f6386d5
commit 0f22f5e319
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -41,14 +41,14 @@ ControlSurfacesTest::instantiateAndTeardownTest ()
/* Push2 needs libcanvas -- which needs pango, which needs a screen
* IA__gdk_pango_context_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
*/
if ((*i)->name == "Ableton Push 2") {
if (!strcmp ((*i)->descriptor->id, "uri://ardour.org/surfaces/push2:0")) {
continue;
}
#endif
// The WebSockets control surface replaces the global event loop, causing
// crashes in later tests once it is deactivates. Until that is fixed, skip
// it.
if ((*i)->name == "WebSockets Server (Experimental)") {
if (!strcmp ((*i)->descriptor->id, "uri://ardour.org/surfaces/ardour_websockets:0")) {
continue;
}