Merge pull request #7771

5e6762d EasyLogging++: Add UTests, that protect against regressions (mj-xmr)
pull/470/head
luigi1111 3 years ago
commit 2f6d5fa8c2
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -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;
}

Loading…
Cancel
Save