Merge pull request #1248 from mstorsjo/silence-intentional-errors

Silence warnings and errors when running tests that intentionally produce errors
This commit is contained in:
dongzha 2014-08-07 10:09:35 +08:00
commit 00d0180f26

View File

@ -18,6 +18,9 @@ class EncInterfaceCallTest : public ::testing::Test, public BaseEncoderTest {
TEST_F (EncInterfaceCallTest, BaseParameterVerify) {
int uiTraceLevel = WELS_LOG_QUIET;
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
int ret = cmResultSuccess;
SEncParamBase baseparam;
memset (&baseparam, 0, sizeof (SEncParamBase));
@ -27,4 +30,7 @@ TEST_F (EncInterfaceCallTest, BaseParameterVerify) {
ret = encoder_->Initialize (&baseparam);
EXPECT_EQ (ret, static_cast<int> (cmInitParaError));
uiTraceLevel = WELS_LOG_ERROR;
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
}