Extend tst_viewguard to test signal trigger after destruction

This commit is contained in:
Waqar Ahmed
2022-04-06 01:13:46 +05:00
parent dc14a309a7
commit 607ec01feb

View File

@@ -26,4 +26,12 @@ int main()
}
TEST(g.isNull());
// Test when ViewGuard is destroyed before view
// May not crash without ASAN
Views::ViewWrapper_qtwidgets wv(static_cast<QWidget*>(nullptr));
{
ViewGuard gg(&wv);
TEST(!gg.isNull());
}
}