Return error when test initialization fails
[ Merge of http://go/wvgerrit/116243 ] Currently if a command line argument is not understood, all tests are skipped and the test suite passes. Bug: 182058081 Test: WV unit/integration tests Change-Id: I9725a9ed9446f15f08372e68c7a25dffd99c7cef
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include "test_base.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
if (!wvcdm::WvCdmTestBase::Initialize(argc, argv)) return 0;
|
||||
if (!wvcdm::WvCdmTestBase::Initialize(argc, argv)) return 1;
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user