tsan: add a simple syscall test
authorDmitry Vyukov <dvyukov@google.com>
Tue, 11 May 2021 08:37:48 +0000 (10:37 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 12 May 2021 04:42:11 +0000 (06:42 +0200)
commit04b2ada51c90a76b153eedafd8d52a2649695a7f
treedb76ef2bd2b7ad531d778af5ce8a3317da328d8e
parentf653313d4aec6f92b224ef996a8ac236dbb48baf
tsan: add a simple syscall test

Add a simple test that uses syscall annotations.
Just to ensure at least basic functionality works.
Also factor out annotated syscall wrappers into a separate
header file as they may be useful for future tests.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D102223
compiler-rt/test/tsan/Linux/fork_syscall.cpp
compiler-rt/test/tsan/Linux/syscall.cpp [new file with mode: 0644]
compiler-rt/test/tsan/Linux/syscall.h [new file with mode: 0644]