Fix tests.

As we use the main library of gtest (if already installed)
we don't need to (and must not) define a main function for the tests.

Does the same (use main library) if we use the subproject.
This commit is contained in:
Matthieu Gautier
2020-01-20 17:00:18 +01:00
parent 0f99c1ad20
commit 4fe31a20e3
8 changed files with 1 additions and 40 deletions

View File

@ -54,8 +54,3 @@ TEST(stringTools, split)
}
};
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}