History

Silence logging in a test which intentionally can trigger errors

Martin Storsjö committed 11 years ago

Commit b9dc3101 parent c44d4a71 file · +6 −0Browse files

Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 1 file). Show all

Unified · Split

test/encoder/EncUT_EncoderExt.cpp+6−0
@@ -143,6 +143,9 @@ void EncoderInterfaceTest::InitializeParamExt() { · 142 unmodified lines
143143 TEST_F (EncoderInterfaceTest, EncoderAdditionalOptionSetTest) {
144144 int iResult, iValue, iReturn;
145145 float fValue, fReturn;
146+ int uiTraceLevel = WELS_LOG_QUIET;
147+
148+ pPtrEnc->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
146149
147150 InitializeParamExt();
148151 iResult = pPtrEnc->InitializeExt (pParamExt);
@@ -255,6 +258,9 @@ TEST_F (EncoderInterfaceTest, EncoderAdditionalOptionSetTest) { · 106 unmodified lines
255258 iResult = pPtrEnc->EncodeFrame (pSrcPic, &sFbi);
256259 EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
257260 pSrcPic->uiTimeStamp += 30;
261+
262+ uiTraceLevel = WELS_LOG_ERROR;
263+ pPtrEnc->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
258264 }
259265
260266 TEST_F (EncoderInterfaceTest, TemporalLayerSettingTest) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t