Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-09-23 00:15:12 +0300
committerJames Almer <jamrial@gmail.com>2022-09-23 00:18:52 +0300
commit9cbfffa0d4c5dabd05e5bbf9923cfaefa16ceb11 (patch)
treed9d2380e21b9a6b2aab903b318fa492d08cc86cf /tests
parent0922c6b01bd50f0ce6e659f765c244f6a8f29eb3 (diff)
tests/checkasm/lpc: print mismatching values
Will help debugging. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/checkasm/lpc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/checkasm/lpc.c b/tests/checkasm/lpc.c
index 8528fd6e20..49e608f8c1 100644
--- a/tests/checkasm/lpc.c
+++ b/tests/checkasm/lpc.c
@@ -45,8 +45,14 @@ static void test_window(int len)
call_ref(src, len, dst0);
call_new(src, len, dst1);
- if (!double_near_abs_eps_array(dst0, dst1, EPS, len))
- fail();
+ for (int i = 0; i < len; i++) {
+ if (!double_near_abs_eps(dst0[i], dst1[i], EPS)) {
+ fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n",
+ i, dst0[i], dst1[i], dst0[i] - dst1[i]);
+ fail();
+ break;
+ }
+ }
bench_new(src, len, dst1);
}