xref: /llvm-project/compiler-rt/lib/tsan/tests/unit/tsan_unit_test_main.cpp (revision ca50840b5bc0679e824850ca4fd322504d6713a0)
1*5de29a4bSNico Weber //===-- tsan_unit_test_main.cpp -------------------------------------------===//
2*5de29a4bSNico Weber //
3*5de29a4bSNico Weber // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*5de29a4bSNico Weber // See https://llvm.org/LICENSE.txt for license information.
5*5de29a4bSNico Weber // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*5de29a4bSNico Weber //
7*5de29a4bSNico Weber //===----------------------------------------------------------------------===//
8*5de29a4bSNico Weber //
9*5de29a4bSNico Weber // This file is a part of ThreadSanitizer (TSan), a race detector.
10*5de29a4bSNico Weber //
11*5de29a4bSNico Weber //===----------------------------------------------------------------------===//
12*5de29a4bSNico Weber #include "gtest/gtest.h"
13*5de29a4bSNico Weber 
main(int argc,char ** argv)14*5de29a4bSNico Weber int main(int argc, char **argv) {
15*5de29a4bSNico Weber   testing::GTEST_FLAG(death_test_style) = "threadsafe";
16*5de29a4bSNico Weber   testing::InitGoogleTest(&argc, argv);
17*5de29a4bSNico Weber   return RUN_ALL_TESTS();
18*5de29a4bSNico Weber }
19