From 86747e49eb973d85ef564e70aba0d6e750d151eb Mon Sep 17 00:00:00 2001
From: Slaven Rezic <slaven@rezic.de>
Date: Sun, 12 Feb 2017 23:32:21 +0100
Subject: [PATCH] don't fail without a DISPLAY (RT #120217)

---
 t/1.t | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/t/1.t b/t/1.t
index 040b521..18104da 100644
--- a/t/1.t
+++ b/t/1.t
@@ -16,7 +16,13 @@ ok(1); # If we made it this far, we're ok.
 # Insert your test code below, the Test::More module is use()ed here so read
 # its man page ( perldoc Test::More ) for help writing this test script.
 
-my $mw = MainWindow->new->InitStderr;
+my $mw = eval { MainWindow->new };
+if (!$mw) {
+    skip("Can't create MainWindow");
+    exit 0;
+}
+
+$mw->InitStderr;
 
 sub testsub;
 
-- 
2.1.2