summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-01-21 10:04:19 +0100
committerJohan Helsing <johan.helsing@qt.io>2019-01-21 11:39:38 +0000
commit4c5bd43353706287865736afeed8e74cff9b458d (patch)
tree327f07e7782e3509abcf8a98c52342f2412e4c9d
parent8d2719ef60270824a25caf96a3bc9ca7e6676e4f (diff)
tst_WaylandCompositor::customSurface: Fix unused variable warning
Test custom surface destruction as well. Change-Id: Iad980858c3473e784cd0611136042bfacd09bddf Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--tests/auto/compositor/compositor/tst_compositor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/compositor/compositor/tst_compositor.cpp b/tests/auto/compositor/compositor/tst_compositor.cpp
index 6c4aa107..d1be8702 100644
--- a/tests/auto/compositor/compositor/tst_compositor.cpp
+++ b/tests/auto/compositor/compositor/tst_compositor.cpp
@@ -677,6 +677,8 @@ void tst_WaylandCompositor::customSurface()
MockClient client;
wl_surface *surface = client.createSurface();
QTRY_COMPARE(compositor.surfaces.size(), 1);
+ wl_surface_destroy(surface);
+ QTRY_COMPARE(compositor.surfaces.size(), 0);
}
void tst_WaylandCompositor::seatCapabilities()