[dpdk-dev] [PATCH v2] test/atomic: fix false failures for 128-bit atomic compare exchange test
David Marchand
david.marchand at redhat.com
Thu Oct 14 17:28:15 CEST 2021
On Wed, Sep 8, 2021 at 7:48 PM David Christensen <drc at linux.vnet.ibm.com> wrote:
>
> When checking the results of the rte_atomic128_cmp_exchange() function,
> current code compares the values of a uint32_t and a uint64_t variable.
> If the number of lcores used by the test is large, or the value of the
> iteration count N is increased, the variable size mismatch can cause a
> false test failure. Modify the comparison to compare uint64_t values.
>
> Fixes: fa3253c534b1 ("test/atomic: add 128-bit atomic compare exchange test")
>
> Signed-off-by: David Christensen <drc at linux.vnet.ibm.com>
> Tested-by: Ruifeng Wang <ruifeng.wang at arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
Applied, thanks.
--
David Marchand
More information about the dev
mailing list