link against gtest-main
Don't bother with custom main function. No benefit. Signed-off-by: Rosen Penev <rosenp@gmail.com>main
parent
b456628557
commit
e1ac00a71f
@ -1,14 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
|
||||
int ret = RUN_ALL_TESTS();
|
||||
|
||||
std::cout << "Tests finished with return value: " << ret << std::endl;
|
||||
|
||||
return ret;
|
||||
}
|
Loading…
Reference in New Issue