test for Context leak
Tests should only hold a single Context pointer
This commit is contained in:
1 parent
29c837e7ed
commit
20c4ff0c26
3 files changed
+13
No files matched your search
@@ -46,6 +46,12 @@ struct BasicTest {
|
||||
initial["value"] = 42;
|
||||
}
|
||||
|
||||
~BasicTest()
|
||||
{
|
||||
if(cli.use_count()!=1u)
|
||||
testAbort("Tester Context leak");
|
||||
}
|
||||
|
||||
void subscribe(const char *name)
|
||||
{
|
||||
sub = cli.monitor(name)
|
||||
|
||||
Reference in new issue
Block a user