blob: 20f8f53975d053195f6a29059749989542a86a03 [file] [log] [blame]
Alexey Samsonov3f3ca962012-09-11 10:50:32 +00001//===-- sanitizer_test_main.cc --------------------------------------------===//
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//
10// This file is a part of ThreadSanitizer/AddressSanitizer runtime.
11//
12//===----------------------------------------------------------------------===//
13#include "gtest/gtest.h"
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -080014#include "sanitizer_common/sanitizer_flags.h"
Alexey Samsonov3f3ca962012-09-11 10:50:32 +000015
Peter Collingbournecc8ed302013-05-28 12:37:34 +000016const char *argv0;
17
Alexey Samsonov3f3ca962012-09-11 10:50:32 +000018int main(int argc, char **argv) {
Peter Collingbournecc8ed302013-05-28 12:37:34 +000019 argv0 = argv[0];
Alexey Samsonov3f3ca962012-09-11 10:50:32 +000020 testing::GTEST_FLAG(death_test_style) = "threadsafe";
21 testing::InitGoogleTest(&argc, argv);
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -080022 SetCommonFlagsDefaults();
Alexey Samsonov3f3ca962012-09-11 10:50:32 +000023 return RUN_ALL_TESTS();
24}