diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-05 19:32:51 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-05 19:32:51 +0200 |
commit | 7731f768a63c521f8654f30de7c263c7d97e2f79 (patch) | |
tree | 5ab298cc432833c40f863a57a48608e1a19cad34 /libs/ardour/test | |
parent | 1d496963796b45284c67222dcc715411b4846452 (diff) |
Strict Ctrl surface unit-test: check re-activate.
Diffstat (limited to 'libs/ardour/test')
-rw-r--r-- | libs/ardour/test/control_surfaces_test.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/test/control_surfaces_test.cc b/libs/ardour/test/control_surfaces_test.cc index bccb929a5c..da47d20bf2 100644 --- a/libs/ardour/test/control_surfaces_test.cc +++ b/libs/ardour/test/control_surfaces_test.cc @@ -18,6 +18,7 @@ */ #include "control_surfaces_test.h" +#include "control_protocol/control_protocol.h" #include "ardour/control_protocol_manager.h" #include "ardour/session.h" @@ -44,7 +45,16 @@ ControlSurfacesTest::instantiateAndTeardownTest () continue; } #endif + std::cout << "ControlSurfacesTest: " << (*i)->name << "\n"; + if ((*i)->protocol && (*i)->protocol->active()) { + /* may already be active because of user preferences */ + 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 } } |