projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
472fe05
)
tests: Add a basic sanity test to sconv cpu-test
author
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Tue, 23 Oct 2012 12:59:27 +0000
(18:29 +0530)
committer
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Wed, 24 Oct 2012 04:42:06 +0000
(10:12 +0530)
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
patch
|
blob
|
history
diff --git
a/src/tests/cpu-test.c
b/src/tests/cpu-test.c
index
af5397a
..
f0ab56c
100644
(file)
--- 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__)