Merge pull request #1473 from mstorsjo/silence-test-warnings

Silence warning logging while running tests that can produce errors
This commit is contained in:
sijchen 2014-10-30 09:08:55 +08:00
commit 41ed734674

View File

@ -2002,6 +2002,8 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) {
int rv = encoder_->InitializeExt (&param_);
ASSERT_TRUE (rv == cmResultSuccess);
int32_t iTraceLevel = WELS_LOG_QUIET;
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
for (int i = 0; i < iEncFrameNum; i++) {
//for (int i = 0; i < 9; i++) {
int iResult;
@ -2033,4 +2035,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) {
}
}
iTraceLevel = WELS_LOG_ERROR;
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
}