[pulseaudio-discuss] [PATCH 2/3] fix samples check after performance test
Peter Meerwald
pmeerw at pmeerw.net
Sat Oct 27 05:59:42 PDT 2012
From: Peter Meerwald <p.meerwald at bct-electronic.com>
---
src/tests/cpu-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tests/cpu-test.c b/src/tests/cpu-test.c
index 35775bd..fcab44a 100644
--- a/src/tests/cpu-test.c
+++ b/src/tests/cpu-test.c
@@ -249,7 +249,7 @@ static void run_conv_test_float_to_s16(pa_convert_func_t func, pa_convert_func_t
orig_func(nsamples, floats, samples_ref);
} PA_CPU_TEST_RUN_STOP
- fail_unless(memcmp(samples_ref, samples, sizeof(nsamples)) == 0);
+ fail_unless(memcmp(samples_ref, samples, nsamples * sizeof(int16_t)) == 0);
}
}
--
1.7.9.5
More information about the pulseaudio-discuss
mailing list