From 7c69effac353978c99f68fb640f5e34274e888c4 Mon Sep 17 00:00:00 2001 From: Michael Fisher Date: Wed, 21 Oct 2020 19:50:23 -0400 Subject: [PATCH] Skip midi input test if no devices available --- tests/engine/MidiDeviceNodeTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/engine/MidiDeviceNodeTest.cpp b/tests/engine/MidiDeviceNodeTest.cpp index 92e012db8..63ad680fd 100644 --- a/tests/engine/MidiDeviceNodeTest.cpp +++ b/tests/engine/MidiDeviceNodeTest.cpp @@ -48,6 +48,9 @@ class MidiInputDeviceNodeTest : public UnitTestBase void runTest() override { + if (MidiInput::getAvailableDevices().isEmpty()) + return; + beginTest ("Processor Channels"); std::unique_ptr proc; proc.reset (new MidiDeviceProcessor (true, getWorld().getMidiEngine()));