[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
This commit is contained in:
Roland McGrath 2020-09-17 12:35:31 -07:00
parent ea237e2c8e
commit 27f34540ea
1 changed files with 4 additions and 4 deletions

View File

@ -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