test for Context leak
Tests should only hold a single Context pointer
This commit is contained in:
@@ -43,6 +43,12 @@ struct Tester {
|
||||
initial["value"] = 42;
|
||||
}
|
||||
|
||||
~Tester()
|
||||
{
|
||||
if(cli.use_count()!=1u)
|
||||
testAbort("Tester Context leak");
|
||||
}
|
||||
|
||||
void testWaiter()
|
||||
{
|
||||
testShow()<<__func__;
|
||||
|
||||
Reference in New Issue
Block a user