userspace-rcu tests: zero array before using
authorColin McCabe <cmccabe@alumni.cmu.edu>
Wed, 11 May 2011 11:38:29 +0000 (07:38 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 11 May 2011 11:38:29 +0000 (07:38 -0400)
commit92e8d9d64a97e2d098cefa223208b2d18118194e
treeb33402aca157e7701afd81b867d0a515339acdfe
parente95ee42934238b371441a463d56f73899ce62867
userspace-rcu tests: zero array before using

It seems like we need the test arrays to start out zeroed.

Without this patch, I get errors like this when running the tests:
test_urcu: test_urcu.c:201: test_array_alloc:
Assertion `test_array[index].a == 0xDEADBEEF || test_array[index].a ==
0' failed.

Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_qsbr.c
tests/test_urcu.c
tests/test_urcu_assign.c
tests/test_urcu_bp.c
This page took 0.032754 seconds and 4 git commands to generate.