]> git.proxmox.com Git - rustc.git/blame - src/compiler-rt/lib/sanitizer_common/tests/sanitizer_test_main.cc
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / compiler-rt / lib / sanitizer_common / tests / sanitizer_test_main.cc
CommitLineData
1a4d82fc 1//===-- sanitizer_test_main.cc --------------------------------------------===//
223e47cc
LB
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
1a4d82fc 10// This file is a part of ThreadSanitizer/AddressSanitizer runtime.
223e47cc
LB
11//
12//===----------------------------------------------------------------------===//
1a4d82fc 13#include "gtest/gtest.h"
92a42be0 14#include "sanitizer_common/sanitizer_flags.h"
223e47cc 15
1a4d82fc 16const char *argv0;
223e47cc 17
1a4d82fc
JJ
18int main(int argc, char **argv) {
19 argv0 = argv[0];
20 testing::GTEST_FLAG(death_test_style) = "threadsafe";
21 testing::InitGoogleTest(&argc, argv);
92a42be0 22 SetCommonFlagsDefaults();
1a4d82fc 23 return RUN_ALL_TESTS();
223e47cc 24}