param test: membarrier: validate total number of increments
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 5 Mar 2024 15:31:19 +0000 (10:31 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 5 Mar 2024 15:33:16 +0000 (10:33 -0500)
commit25e59085d045d1a13b1b140d012541b30897b531
tree23337e1e947c3daf9cc4d7c8b1ca65da61455233
parent6b30db4e78a3ebe2c925c2336996aef894bf241a
param test: membarrier: validate total number of increments

While reviewing the riscv implementation for this test, I noticed that
the final store is only incrementing the content of its register,
without ever storing it to memory.

This passes testing because the increment is effectively a no-op, and
the test never validates that any increment happen in the first place.

Introduce a validation of the increment total to eliminate those
false-positives.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ie9ee1c7902509da75dd85babd07bc180ad0b9ae9
tests/param_test.c
This page took 0.026899 seconds and 4 git commands to generate.