projects
/
platform
/
core
/
security
/
vasum.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove debug logs in release build.
[platform/core/security/vasum.git]
/
tests
/
unit_tests
/
log
/
ut-logger.cpp
diff --git
a/tests/unit_tests/log/ut-logger.cpp
b/tests/unit_tests/log/ut-logger.cpp
index
36f52e3
..
9201f8f
100644
(file)
--- a/
tests/unit_tests/log/ut-logger.cpp
+++ b/
tests/unit_tests/log/ut-logger.cpp
@@
-176,6
+176,7
@@
BOOST_AUTO_TEST_CASE(LogsLevelInfo)
BOOST_CHECK(tf.logContains("[TRACE]") == false);
}
BOOST_CHECK(tf.logContains("[TRACE]") == false);
}
+#if !defined(NDEBUG)
BOOST_AUTO_TEST_CASE(LogsLevelDebug)
{
TestLog tf(LogLevel::DEBUG);
BOOST_AUTO_TEST_CASE(LogsLevelDebug)
{
TestLog tf(LogLevel::DEBUG);
@@
-199,6
+200,7
@@
BOOST_AUTO_TEST_CASE(LogsLevelTrace)
BOOST_CHECK(tf.logContains("[DEBUG]") == true);
BOOST_CHECK(tf.logContains("[TRACE]") == true);
}
BOOST_CHECK(tf.logContains("[DEBUG]") == true);
BOOST_CHECK(tf.logContains("[TRACE]") == true);
}
+#endif
BOOST_AUTO_TEST_CASE(LoggerScope)
{
BOOST_AUTO_TEST_CASE(LoggerScope)
{