History

Silence warnings and errors when running tests that intentionally produce errors

Martin Storsjö committed 12 years ago

Commit e8fafeb1 parent 3aec3a21 file · +6 −0Browse files

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

Unified · Split

test/encoder/EncUT_InterfaceTest.cpp+6−0
@@ -18,6 +18,9 @@ class EncInterfaceCallTest : public ::testing::Test, public BaseEncoderTest { · 17 unmodified lines
1818
1919
2020 TEST_F (EncInterfaceCallTest, BaseParameterVerify) {
21+ int uiTraceLevel = WELS_LOG_QUIET;
22+ encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
23+
2124 int ret = cmResultSuccess;
2225 SEncParamBase baseparam;
2326 memset (&baseparam, 0, sizeof (SEncParamBase));
@@ -27,4 +30,7 @@ TEST_F (EncInterfaceCallTest, BaseParameterVerify) { · 3 unmodified lines
2730
2831 ret = encoder_->Initialize (&baseparam);
2932 EXPECT_EQ (ret, static_cast<int> (cmInitParaError));
33+
34+ uiTraceLevel = WELS_LOG_ERROR;
35+ encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
3036 }

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