mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 06:58:54 +00:00
EasyLogging++: Add UTests, that protect against regressions
This commit is contained in:
parent
9c18f2767b
commit
5e6762d459
@ -195,3 +195,16 @@ TEST(logging, multiline)
|
|||||||
cleanup();
|
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…
Reference in New Issue
Block a user