commit c4334df6735f92c045e822fb5b179d835a99878b
parent def5f2b47b4d0acec118b4ac87c074f0820e34d1
Author: falkTX <falktx@falktx.com>
Date: Wed, 27 Oct 2021 05:05:26 +0100
Place the new tests under ifdef DPF_RUNTIME_TESTING
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/distrho/src/DistrhoPluginJACK.cpp b/distrho/src/DistrhoPluginJACK.cpp
@@ -751,6 +751,7 @@ private:
// -----------------------------------------------------------------------
+#ifdef DPF_RUNTIME_TESTING
class PluginProcessTestingThread : public Thread
{
PluginExporter& plugin;
@@ -880,6 +881,7 @@ bool runSelfTests()
return true;
}
+#endif // DPF_RUNTIME_TESTING
END_NAMESPACE_DISTRHO
@@ -889,8 +891,10 @@ int main(int argc, char* argv[])
{
USE_NAMESPACE_DISTRHO;
+#ifdef DPF_RUNTIME_TESTING
if (argc == 2 && std::strcmp(argv[1], "selftest") == 0)
return runSelfTests() ? 0 : 1;
+#endif
jack_status_t status = jack_status_t(0x0);
jack_client_t* client = jackbridge_client_open(DISTRHO_PLUGIN_NAME, JackNoStartServer, &status);