A coverity issue was reported that RUN_ALL_TESTS() which runs all
defined tests can invoke std::length_error.
To fix this issue, a catch statement is added which catches
std::length_error.
Change-Id: I0e1ec4bfa323e637584f0cacff9422ed8c81d015
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
} catch (const ::testing::internal::GoogleTestFailureException& e) {
ret = -1;
std::cout << "GoogleTestFailureException was thrown:" << e.what() << std::endl;
+ } catch (const std::length_error& e) {
+ ret = -1;
+ std::cout << "std::length_error was thrown:" << e.what() << std::endl;
}
return ret;