From 7914e1286b32ab65896c382ea06d1903c6bc0bfe Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 23 Oct 2012 18:29:27 +0530 Subject: [PATCH] tests: Add a basic sanity test to sconv cpu-test This seems redundant with the previous check in that function, but it makes sure that the result of the speed comparison is what we think it is. --- src/tests/cpu-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/cpu-test.c b/src/tests/cpu-test.c index af5397a29..f0ab56c91 100644 --- a/src/tests/cpu-test.c +++ b/src/tests/cpu-test.c @@ -236,6 +236,8 @@ static void run_conv_test_float_to_s16(pa_convert_func_t func, pa_convert_func_t PA_CPU_TEST_RUN_START("orig", TIMES, TIMES2) { orig_func(SAMPLES, floats, samples_ref); } PA_CPU_TEST_RUN_STOP + + fail_unless(memcmp(samples_ref, samples, sizeof(samples)) == 0); } #if defined (__i386__) || defined (__amd64__)