From cf506c6a41a5d23152bdf35ae93d6b81b20888e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Bonveh=C3=AD?= Date: Wed, 4 Mar 2020 12:06:34 -0300 Subject: [PATCH] Improve xinerama 02_removed_display error check and message --- test/integration/xinerama/02_removed_display.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/xinerama/02_removed_display.lua b/test/integration/xinerama/02_removed_display.lua index 90c2337bc..3a76d762c 100644 --- a/test/integration/xinerama/02_removed_display.lua +++ b/test/integration/xinerama/02_removed_display.lua @@ -1,7 +1,7 @@ mod_xinerama.refresh(); -if notioncore.find_screen_id(1) then - return "New number of screens should be 1, found ", notioncore.find_screen_id(1):name() +if notioncore.find_screen_id(1) ~= nil then + return "New number of screens should be 1, found " .. notioncore.find_screen_id(1):name() end os.execute("cp xinerama/fakexinerama-2monitors xinerama/.fakexinerama");