aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-09-09 15:16:06 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-09-09 15:16:06 -0400
commitacfe3f8ded838bd6ef31cbf203cc70a82e976843 (patch)
treeea300ecf9a7fe28fc24f87341899767cd4e4d699 /tests/unit_tests
parentMerge pull request #7823 (diff)
parentEasyLogging++: new anti-UB test and propagating exception (diff)
downloadmonero-acfe3f8ded838bd6ef31cbf203cc70a82e976843.tar.xz
Merge pull request #7828
b2c59af EasyLogging++: new anti-UB test and propagating exception (mj-xmr)
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/logging.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit_tests/logging.cpp b/tests/unit_tests/logging.cpp
index f11b17412..b3ffb9aa6 100644
--- a/tests/unit_tests/logging.cpp
+++ b/tests/unit_tests/logging.cpp
@@ -208,3 +208,10 @@ TEST(logging, operator_equals_segfault)
el::Logger log2("id2", nullptr);
log2 = log1;
}
+
+TEST(logging, empty_configurations_throws)
+{
+ el::Logger log1("id1", nullptr);
+ const el::Configurations cfg;
+ EXPECT_ANY_THROW(log1.configure(cfg));
+}