Skip to content

Commit a759fd6

Browse files
committed
rtcheck: Added rtcheck to all processBlock calls at level 10
1 parent d0eaff1 commit a759fd6

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

Source/tests/BasicTests.cpp

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include "../PluginTests.h"
1616
#include "../TestUtilities.h"
17+
#include "../RTCheck.h"
18+
1719
#include <future>
1820
#include <thread>
1921

@@ -156,7 +158,12 @@ struct EditorWhilstProcessingTest : public PluginTest
156158
while (shouldProcess)
157159
{
158160
fillNoise (ab);
159-
instance.processBlock (ab, mb);
161+
162+
{
163+
RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel)
164+
instance.processBlock (ab, mb);
165+
}
166+
160167
mb.clear();
161168

162169
threadStartedEvent.signal();
@@ -230,7 +237,12 @@ struct AudioProcessingTest : public PluginTest
230237
addNoteOff (mb, noteChannel, noteNumber, 0);
231238

232239
fillNoise (ab);
233-
instance.processBlock (ab, mb);
240+
241+
{
242+
RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel)
243+
instance.processBlock (ab, mb);
244+
}
245+
234246
mb.clear();
235247

236248
ut.expectEquals (countNaNs (ab), 0, "NaNs found in buffer");
@@ -414,7 +426,12 @@ struct AutomationTest : public PluginTest
414426
numSamplesDone,
415427
numSamplesThisTime);
416428
fillNoise (subBuffer);
417-
instance.processBlock (subBuffer, mb);
429+
430+
{
431+
RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel)
432+
instance.processBlock (subBuffer, mb);
433+
}
434+
418435
numSamplesDone += numSamplesThisTime;
419436

420437
mb.clear();
@@ -660,7 +677,12 @@ struct ParameterThreadSafetyTest : public PluginTest
660677
param->setValue (r.nextFloat());
661678

662679
fillNoise (ab);
663-
instance.processBlock (ab, mb);
680+
681+
{
682+
RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel)
683+
instance.processBlock (ab, mb);
684+
}
685+
664686
mb.clear();
665687
}
666688

0 commit comments

Comments
 (0)