ref: b9dc310857cff18655e38776ebcf5d4044d1ad6b
parent: c44d4a7f0791cb2f1a3bd85e90ea7d580785e022
author: Martin Storsjö <[email protected]>
date: Fri Nov 28 06:04:03 EST 2014
Silence logging in a test which intentionally can trigger errors
--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -143,7 +143,10 @@
TEST_F (EncoderInterfaceTest, EncoderAdditionalOptionSetTest) {
int iResult, iValue, iReturn;
float fValue, fReturn;
+ int uiTraceLevel = WELS_LOG_QUIET;
+ pPtrEnc->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
+
InitializeParamExt();
iResult = pPtrEnc->InitializeExt (pParamExt);
EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
@@ -255,6 +258,9 @@
iResult = pPtrEnc->EncodeFrame (pSrcPic, &sFbi);
EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
pSrcPic->uiTimeStamp += 30;
+
+ uiTraceLevel = WELS_LOG_ERROR;
+ pPtrEnc->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
}
TEST_F (EncoderInterfaceTest, TemporalLayerSettingTest) {