From 1c2940479d06b92bf45bc67704ee4a8cc78a521a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 29 Oct 2014 22:44:40 +0200 Subject: [PATCH] Silence warning logging while running tests that can produce errors --- test/api/encode_decode_api_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/api/encode_decode_api_test.cpp b/test/api/encode_decode_api_test.cpp index 061b4c70..fc48d00a 100644 --- a/test/api/encode_decode_api_test.cpp +++ b/test/api/encode_decode_api_test.cpp @@ -2002,6 +2002,8 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { 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 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { } } + iTraceLevel = WELS_LOG_ERROR; + encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel); }