diff --git a/tests/Filters/main.cpp b/tests/Filters/main.cpp index a775b1fc0..71a2c4375 100644 --- a/tests/Filters/main.cpp +++ b/tests/Filters/main.cpp @@ -103,6 +103,8 @@ void FillRandomWaveform(UniformAnalogWaveform* wfm, size_t size, float fmin, flo wfm->MarkModifiedFromCpu(); wfm->m_revision ++; + if(wfm->m_timescale == 0) + wfm->m_timescale = 1000; } void VerifyMatchingResult(AcceleratorBuffer& golden, AcceleratorBuffer& observed, float tolerance) @@ -120,7 +122,7 @@ void VerifyMatchingResult(AcceleratorBuffer& golden, AcceleratorBuffer= tolerance) && firstFail) { - LogError("first fail at i=%zu\n", i); + LogError("first fail at i=%zu (delta=%f, tolerance=%f)\n", i, delta, tolerance); firstFail = false; }