diff options
author | Roland McGrath <mcgrathr@google.com> | 2020-09-17 12:35:31 -0700 |
---|---|---|
committer | Roland McGrath <mcgrathr@google.com> | 2020-09-17 17:42:53 -0700 |
commit | 27f34540ea56207f527dba6bbb9cd25a57be3f62 (patch) | |
tree | 2f9aa69100e6a30e129cc594d41c86bfc025ec82 | |
parent | ea237e2c8e5d082715effb9cb64158d7c6894e27 (diff) | |
download | llvm-27f34540ea56207f527dba6bbb9cd25a57be3f62.tar.gz |
[scudo/standalone] Don't define test main function for Fuchsia
Fuchsia's unit test library provides the main function by default.
Reviewed By: cryptoad
Differential Revision: https://reviews.llvm.org/D87809
-rw-r--r-- | compiler-rt/lib/scudo/standalone/tests/scudo_unit_test_main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/scudo/standalone/tests/scudo_unit_test_main.cpp b/compiler-rt/lib/scudo/standalone/tests/scudo_unit_test_main.cpp index 20deca998d96..9bbf6e75a5cd 100644 --- a/compiler-rt/lib/scudo/standalone/tests/scudo_unit_test_main.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/scudo_unit_test_main.cpp @@ -29,11 +29,11 @@ __scudo_default_options() { "dealloc_type_mismatch=" DEALLOC_TYPE_MISMATCH; } -int main(int argc, char **argv) { +// The zxtest library provides a default main function that does the same thing +// for Fuchsia builds. #if !SCUDO_FUCHSIA +int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); -#else - return RUN_ALL_TESTS(argc, argv); -#endif } +#endif |