]> git.puffer.fish Git - mirror/frr.git/commit
tests: fix TSAN warnings in atomlist test 16258/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 20 Jun 2024 10:02:25 +0000 (12:02 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 20 Jun 2024 13:44:46 +0000 (15:44 +0200)
commite14c94f2b77692126210f4b7b51cf097d7f847e0
tree7c51fc0697b0493c312e17c7c3823323817d5fe4
parentb9541fe77fcb706c3f265d704e15f810b0a98c14
tests: fix TSAN warnings in atomlist test

The atomlist test consists of a sequence of (MT) sub-tests, from which
counters are collected and verified.  TSAN doesn't know that these
counters are synchronized by way of the sub-test starting and finishing,
so it complains.  Just use atomics to get rid of the warning.

(This is solely an issue with the test, not the atomlist code.  There
are no warnings from that.)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
tests/lib/test_atomlist.c