mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
Strict Ctrl surface unit-test: check re-activate.
This commit is contained in:
parent
1d49696379
commit
7731f768a6
1 changed files with 10 additions and 0 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "control_surfaces_test.h"
|
#include "control_surfaces_test.h"
|
||||||
|
#include "control_protocol/control_protocol.h"
|
||||||
#include "ardour/control_protocol_manager.h"
|
#include "ardour/control_protocol_manager.h"
|
||||||
#include "ardour/session.h"
|
#include "ardour/session.h"
|
||||||
|
|
||||||
|
|
@ -44,7 +45,16 @@ ControlSurfacesTest::instantiateAndTeardownTest ()
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
m.activate (**i);
|
std::cout << "ControlSurfacesTest: " << (*i)->name << "\n";
|
||||||
|
if ((*i)->protocol && (*i)->protocol->active()) {
|
||||||
|
/* may already be active because of user preferences */
|
||||||
m.deactivate (**i);
|
m.deactivate (**i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m.activate (**i);
|
||||||
|
m.activate (**i); // should be a NO-OP, prints a warning
|
||||||
|
|
||||||
|
m.deactivate (**i);
|
||||||
|
m.deactivate (**i); // should be a NO-OP
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue