From 6c19c352bc32a9a1eab2ccb2769981fb12fdd48d Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 20 Nov 2011 15:46:22 +0100 Subject: [PATCH] Avoid refreshing twice in output test Waking up the compositor automatically refreshed the output list. Therefore, avoid refreshing it manually again. Signed-off-by: David Herrmann --- tests/test_output.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/test_output.c b/tests/test_output.c index 43b591b..06fc8b2 100644 --- a/tests/test_output.c +++ b/tests/test_output.c @@ -147,16 +147,14 @@ int main(int argc, char **argv) } printf("Wakeing up compositor...\n"); - kmscon_compositor_wake_up(comp); - kmscon_compositor_use(comp); - - printf("Refreshing compositor...\n"); - ret = kmscon_compositor_refresh(comp); + ret = kmscon_compositor_wake_up(comp); if (ret < 0) { - printf("Cannot refresh compositor: %d\n", ret); + printf("Cannot wakeup compositor: %d\n", ret); goto err_unref; } + kmscon_compositor_use(comp); + if (argc < 2) { ret = list_outputs(comp); if (ret) { -- 2.7.4