diff options
Diffstat (limited to 'contrib/llvm-project/compiler-rt/lib/nsan/tests/nsan_unit_test_main.cpp')
-rw-r--r-- | contrib/llvm-project/compiler-rt/lib/nsan/tests/nsan_unit_test_main.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/nsan/tests/nsan_unit_test_main.cpp b/contrib/llvm-project/compiler-rt/lib/nsan/tests/nsan_unit_test_main.cpp new file mode 100644 index 000000000000..86ad5bbfef17 --- /dev/null +++ b/contrib/llvm-project/compiler-rt/lib/nsan/tests/nsan_unit_test_main.cpp @@ -0,0 +1,18 @@ +//===-- nsan_unit_test_main.cpp -------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file is a part of NSan. +// +//===----------------------------------------------------------------------===// +#include "gtest/gtest.h" + +int main(int argc, char **argv) { + testing::GTEST_FLAG(death_test_style) = "threadsafe"; + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} |