summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-10-23 18:29:27 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-10-24 10:12:06 +0530
commit7914e1286b32ab65896c382ea06d1903c6bc0bfe (patch)
tree29d9c3934439da5ee6ff8da5a51539fb4f291bba /src
parent472fe05297649523a36f3af1ede8f964132d7fee (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/tests/cpu-test.c2
1 files changed, 2 insertions, 0 deletions
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__)