ref: 1c2940479d06b92bf45bc67704ee4a8cc78a521a
parent: 9be23c7821d45b9e6a44d738d535ae5ff6d8e4f8
author: Martin Storsjö <martin@martin.st>
date: Wed Oct 29 18:44:40 EDT 2014
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);
}