ref: 41ed734674f3110961d775ddf648f5032c2d92cf
parent: b8e0a3fa384ee8926a7d840f165bcef36626c6cc
parent: 1c2940479d06b92bf45bc67704ee4a8cc78a521a
author: sijchen <[email protected]>
date: Thu Oct 30 05:08:55 EDT 2014
Merge pull request #1473 from mstorsjo/silence-test-warnings Silence warning logging while running tests that can produce errors
--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -2002,6 +2002,8 @@
int rv = encoder_->InitializeExt (¶m_);
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 @@
}
}
+ iTraceLevel = WELS_LOG_ERROR;
+ encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
}