13f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov//===-- sanitizer_test_main.cc --------------------------------------------===// 23f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov// 33f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov// The LLVM Compiler Infrastructure 43f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov// 53f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov// This file is distributed under the University of Illinois Open Source 63f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov// License. See LICENSE.TXT for details. 73f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov// 83f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov//===----------------------------------------------------------------------===// 93f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov// 103f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov// This file is a part of ThreadSanitizer/AddressSanitizer runtime. 113f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov// 123f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov//===----------------------------------------------------------------------===// 133f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov#include "gtest/gtest.h" 143d763c0d3700e73b3aead8e65e04ec28efc56138Pirama Arumuga Nainar#include "sanitizer_common/sanitizer_flags.h" 153f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov 16cc8ed30ebfb4ff6f9d9c7e77760dd5c7841a1af8Peter Collingbourneconst char *argv0; 17cc8ed30ebfb4ff6f9d9c7e77760dd5c7841a1af8Peter Collingbourne 183f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonovint main(int argc, char **argv) { 19cc8ed30ebfb4ff6f9d9c7e77760dd5c7841a1af8Peter Collingbourne argv0 = argv[0]; 203f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov testing::GTEST_FLAG(death_test_style) = "threadsafe"; 213f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov testing::InitGoogleTest(&argc, argv); 223d763c0d3700e73b3aead8e65e04ec28efc56138Pirama Arumuga Nainar SetCommonFlagsDefaults(); 233f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov return RUN_ALL_TESTS(); 243f3ca96358ed02ef13c5cfd5d6bc4d33dd861c2aAlexey Samsonov} 25