on xenial help sign in
Fix mock surface manager creation.
61ed5fcRodney Dawes
tests/mocks/Unity/Application/SurfaceManager.cpp+3
@@ -35,6 +35,9 @@ SurfaceManager *SurfaceManager::m_instance = nullptr;
35
35
36SurfaceManager *SurfaceManager::instance()
36SurfaceManager *SurfaceManager::instance()
37{
37{
38+ if (m_instance == nullptr) {
39+ auto inst = new SurfaceManager();
40+ }
38 return m_instance;
41 return m_instance;
39}
42}
40
43