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.
This commit is contained in:
Arun Raghavan 2012-10-23 18:29:27 +05:30
parent 472fe05297
commit 7914e1286b

View file

@ -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) { PA_CPU_TEST_RUN_START("orig", TIMES, TIMES2) {
orig_func(SAMPLES, floats, samples_ref); orig_func(SAMPLES, floats, samples_ref);
} PA_CPU_TEST_RUN_STOP } PA_CPU_TEST_RUN_STOP
fail_unless(memcmp(samples_ref, samples, sizeof(samples)) == 0);
} }
#if defined (__i386__) || defined (__amd64__) #if defined (__i386__) || defined (__amd64__)