Browse Source

Place the new tests under ifdef DPF_RUNTIME_TESTING

Signed-off-by: falkTX <falktx@falktx.com>
pull/349/head
falkTX 3 years ago
parent
commit
c4334df673
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      distrho/src/DistrhoPluginJACK.cpp

+ 4
- 0
distrho/src/DistrhoPluginJACK.cpp View File

@@ -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);


Loading…
Cancel
Save