2012-09-11 18:50:32 +08:00
|
|
|
//===-- sanitizer_test_main.cc --------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file is a part of ThreadSanitizer/AddressSanitizer runtime.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "gtest/gtest.h"
|
2015-08-19 05:54:32 +08:00
|
|
|
#include "sanitizer_common/sanitizer_flags.h"
|
2012-09-11 18:50:32 +08:00
|
|
|
|
2013-05-28 20:37:34 +08:00
|
|
|
const char *argv0;
|
|
|
|
|
2012-09-11 18:50:32 +08:00
|
|
|
int main(int argc, char **argv) {
|
2013-05-28 20:37:34 +08:00
|
|
|
argv0 = argv[0];
|
2012-09-11 18:50:32 +08:00
|
|
|
testing::GTEST_FLAG(death_test_style) = "threadsafe";
|
|
|
|
testing::InitGoogleTest(&argc, argv);
|
2015-08-19 05:54:32 +08:00
|
|
|
SetCommonFlagsDefaults();
|
2012-09-11 18:50:32 +08:00
|
|
|
return RUN_ALL_TESTS();
|
|
|
|
}
|