Alexey Samsonov | 3f3ca96 | 2012-09-11 10:50:32 +0000 | [diff] [blame] | 1 | //===-- 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 Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 14 | #include "sanitizer_common/sanitizer_flags.h" |
Alexey Samsonov | 3f3ca96 | 2012-09-11 10:50:32 +0000 | [diff] [blame] | 15 | |
Peter Collingbourne | cc8ed30 | 2013-05-28 12:37:34 +0000 | [diff] [blame] | 16 | const char *argv0; |
| 17 | |
Alexey Samsonov | 3f3ca96 | 2012-09-11 10:50:32 +0000 | [diff] [blame] | 18 | int main(int argc, char **argv) { |
Peter Collingbourne | cc8ed30 | 2013-05-28 12:37:34 +0000 | [diff] [blame] | 19 | argv0 = argv[0]; |
Alexey Samsonov | 3f3ca96 | 2012-09-11 10:50:32 +0000 | [diff] [blame] | 20 | testing::GTEST_FLAG(death_test_style) = "threadsafe"; |
| 21 | testing::InitGoogleTest(&argc, argv); |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 22 | SetCommonFlagsDefaults(); |
Alexey Samsonov | 3f3ca96 | 2012-09-11 10:50:32 +0000 | [diff] [blame] | 23 | return RUN_ALL_TESTS(); |
| 24 | } |