Subject: | Fails without X display |
On Unix systems without an X display the test suite fails:
...
couldn't connect to display ":0" at /opt/perl-5.28.0/lib/site_perl/5.28.0/x86_64-linux/Tk/MainWindow.pm line 53.
MainWindow->new() at t/Tk-PerlMethodList.t line 23.
# Looks like your test exited with 111 just after 2.
t/Tk-PerlMethodList.t ..
Dubious, test returned 111 (wstat 28416, 0x6f00)
Failed 7/9 subtests
...
This may be fixed by skipping the test if the MainWindow could not created, e.g. like this (untested):
my $mw = eval { MainWindow->new };
if (!$mw) {
plan skip_all => "MainWindow could not be created: $@";
}
plan tests => ...