test: fix DSWaylandClient-test to release an DSWaylandCompositor instance at the... 53/241653/1
authorSung-Jin Park <sj76.park@samsung.com>
Wed, 22 Jul 2020 05:51:39 +0000 (14:51 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:54:23 +0000 (18:54 +0900)
Change-Id: I064732bdd370cd4db5927ea949e71478fd87e322
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
tests/DSWaylandClient-test.cpp

index a8c6286..3151a49 100644 (file)
@@ -31,6 +31,8 @@ TEST_F(DSWaylandClientTest, NewDSWaylandClient)
 
                if (client)
                        delete client;
+
+               DSWaylandCompositor::releaseInstance();
        }
 }
 
@@ -52,6 +54,8 @@ TEST_F(DSWaylandClientTest, GetClientFromWlClient)
 
                        delete client;
                }
+
+               DSWaylandCompositor::releaseInstance();
        }
 }
 
@@ -73,6 +77,8 @@ TEST_F(DSWaylandClientTest, GetWlClient)
 
                        delete client;
                }
+
+               DSWaylandCompositor::releaseInstance();
        }
 }