tsan: fix warnings in tests
authorDmitry Vyukov <dvyukov@google.com>
Wed, 28 Apr 2021 06:36:03 +0000 (08:36 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 29 Apr 2021 05:42:18 +0000 (07:42 +0200)
commitd78782f6a6ee98defe12ec9dde22144e1fe36ce6
tree7cca0396b3b96684edf878055ed53b1122083b21
parent60c60dd1387742730b5cc756f8d92bac2e23c2b0
tsan: fix warnings in tests

Fix format specifier.
Fix warnings about non-standard attribute placement.
Make free_race2.c test a bit more interesting:
test access with/without an offset.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D101424
compiler-rt/test/tsan/fiber_cleanup.cpp
compiler-rt/test/tsan/free_race.c
compiler-rt/test/tsan/free_race2.c
compiler-rt/test/tsan/sleep_sync.cpp