tsan: declare annotations in test.h
authorDmitry Vyukov <dvyukov@google.com>
Mon, 10 May 2021 07:04:20 +0000 (09:04 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 12 May 2021 05:22:39 +0000 (07:22 +0200)
commit8214764f35e1b764fb939e18f16e11aa43073469
tree5e7f84133313c14430668a8dcb2c1760ae5762fd
parent6d2df181638a34f5d4ebc0c92cfb6a30abf8588d
tsan: declare annotations in test.h

We already declare subset of annotations in test.h.
But some are duplicated and declared in tests.
Move all annotation declarations to test.h.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D102152
14 files changed:
compiler-rt/test/tsan/annotate_happens_before.cpp
compiler-rt/test/tsan/benign_race.cpp
compiler-rt/test/tsan/ignore_sync.cpp
compiler-rt/test/tsan/mutex_bad_read_lock.cpp
compiler-rt/test/tsan/mutex_bad_read_unlock.cpp
compiler-rt/test/tsan/mutex_bad_unlock.cpp
compiler-rt/test/tsan/mutex_double_lock.cpp
compiler-rt/test/tsan/mutexset5.cpp
compiler-rt/test/tsan/signal_sync2.cpp
compiler-rt/test/tsan/test.h
compiler-rt/test/tsan/thread_end_with_ignore.cpp
compiler-rt/test/tsan/thread_end_with_ignore2.cpp
compiler-rt/test/tsan/thread_end_with_ignore3.cpp
compiler-rt/test/tsan/thread_name.cpp