History

Silence warning logging while running tests that can produce errors

Martin Storsjö committed 12 years ago

Commit 1c294041 parent 9be23c71 file · +4 −0Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+4−0
@@ -2002,6 +2002,8 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { · 2001 unmodified lines
20022002 int rv = encoder_->InitializeExt (&param_);
20032003 ASSERT_TRUE (rv == cmResultSuccess);
20042004
2005+ int32_t iTraceLevel = WELS_LOG_QUIET;
2006+ encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
20052007 for (int i = 0; i < iEncFrameNum; i++) {
20062008 //for (int i = 0; i < 9; i++) {
20072009 int iResult;
@@ -2033,4 +2035,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { · 25 unmodified lines
20332035 }
20342036 }
20352037
2038+ iTraceLevel = WELS_LOG_ERROR;
2039+ encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
20362040 }

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