mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 01:12:39 +00:00
Merge pull request #7771
5e6762d
EasyLogging++: Add UTests, that protect against regressions (mj-xmr)
This commit is contained in:
commit
2f6d5fa8c2
1 changed files with 13 additions and 0 deletions
|
@ -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 a new issue