From 63577705887fdc25df1d3d10c6f70ff3a4400767 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 3 Oct 2015 17:46:55 +0200 Subject: [PATCH] additional check for DSP falloff. --- libs/ardour/test/dsp_load_calculator_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/test/dsp_load_calculator_test.cc b/libs/ardour/test/dsp_load_calculator_test.cc index 76d9e54e5d..f4ce68220c 100644 --- a/libs/ardour/test/dsp_load_calculator_test.cc +++ b/libs/ardour/test/dsp_load_calculator_test.cc @@ -67,6 +67,8 @@ DSPLoadCalculatorTest::basicTest () dsp_calc.set_start_timestamp_us(0); dsp_calc.set_stop_timestamp_us(dsp_100_pc_48k_us / 2); CPPUNIT_ASSERT(dsp_calc.elapsed_time_us() == 5333); + CPPUNIT_ASSERT(dsp_calc.get_dsp_load() <= 1.0); + CPPUNIT_ASSERT(dsp_calc.get_dsp_load() >= 0.5); #if 0 std::cout << "DSP 50% load value = " << dsp_calc.get_dsp_load() << std::endl; #endif