diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-07-27 17:01:00 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-07-27 17:01:00 -0400 |
| commit | 2f6d5fa8c2f15d190ddc051d3cc12cbc86f8c1dd (patch) | |
| tree | c8043f1fd67740a894a122eb3845c0570bc45047 /tests/unit_tests/logging.cpp | |
| parent | ef659f8b528692df99f5372dbfeb66b652af009c (diff) | |
| parent | 5e6762d4591ed427715b1ad76b0737b6f59cf571 (diff) | |
| download | monzero-core-2f6d5fa8c2f15d190ddc051d3cc12cbc86f8c1dd.tar.gz monzero-core-2f6d5fa8c2f15d190ddc051d3cc12cbc86f8c1dd.tar.xz monzero-core-2f6d5fa8c2f15d190ddc051d3cc12cbc86f8c1dd.zip | |
Merge pull request #7771
5e6762d EasyLogging++: Add UTests, that protect against regressions (mj-xmr)
Diffstat (limited to 'tests/unit_tests/logging.cpp')
| -rw-r--r-- | tests/unit_tests/logging.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit_tests/logging.cpp b/tests/unit_tests/logging.cpp index b3afba243..f11b17412 100644 --- a/tests/unit_tests/logging.cpp +++ b/tests/unit_tests/logging.cpp @@ -195,3 +195,16 @@ TEST(logging, multiline) cleanup(); } +// These operations might segfault +TEST(logging, copy_ctor_segfault) +{ + const el::Logger log1("id1", nullptr); + const el::Logger log2(log1); +} + +TEST(logging, operator_equals_segfault) +{ + const el::Logger log1("id1", nullptr); + el::Logger log2("id2", nullptr); + log2 = log1; +} |
