Commit fef6d137 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

update test skip conditions and notice

Turns out giflib 5.1.2 is the culprit and it isn't Deban-specific after all.
parent 7fc4e02d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ build-applications:
	@${MAKE} -C share/applications

test: all
	@if ! uname -m | fgrep -q -e arm -e mips || ! test -e /etc/debian_version; then \
	@if ! uname -m | fgrep -q -e arm -e mips; then \
		PACKAGE=${PACKAGE} prove test/feh.t test/mandoc.t; \
	else \
		PACKAGE=${PACKAGE} prove test/feh.t test/mandoc.t || cat test/imlib2-bug-notice; \
+5 −3
Original line number Diff line number Diff line
@@ -1701,16 +1701,18 @@ section.
.
.Pp
.
On some systems with Imlib2 1.4.7,
On systems with Imlib2 >= 1.4.7 and giflib >= 5.1.2,
.Nm
may be unable to load gif images. For affected mips, mipsel and arm devices,
gif support is completely broken, while on x86 / x86_64 gifs can usually
only be loaded if they are the first image in the filelist.
This appears to be caused by a Debian and/or Imlib2 bug. See
This appears to be an Imlib2 and/or giflib bug introduced in giflib 5.1.2.
See
.Aq https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813729
for details. Workaround: Use
.Cm --magick-timeout 5
.Pq or some other positive value .
.Pq or some other positive value
to load gifs with imagemagick instead, or downgrade giflib to 5.1.1.
.
.Pp
.
+5 −10
Original line number Diff line number Diff line
@@ -116,17 +116,12 @@ $cmd = Test::Command->new(

$cmd->exit_is_num(0);

# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812657
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813729
if ( -e '/etc/debian_version' and qx{imlib2-config --version} eq "1.4.7\n" ) {
#$cmd->stdout_is_file('test/list/filename_recursive');
#$cmd->stderr_is_eq('');
# dummy tests to match number of planned tests
$cmd->exit_is_num(0);
$cmd->exit_is_num(0);
}
else {
	$cmd->stdout_is_file('test/list/filename_recursive');
	$cmd->stderr_is_eq('');
}

$cmd = Test::Command->new( cmd => "$feh --customlist '%f; %h; %l; %m; %n; %p; "
	  . "%s; %t; %u; %w' $images" );
+4 −4
Original line number Diff line number Diff line
[!] Possibly broken imlib2 / libgif detected - ignoring test results

Imlib2 1.4.7 is unable to load GIF images on Debian stretch/sid systems (and
maybe other distros too).  On x86 / x86_64 this applies to most gifs which are
not the first file in the filelist, while on mips/mipsel and (some?) arm boxes
it is unable to load any gif files. Since feh's tests include gifs, they fail.
Imlib2 1.4.7 with giflib 5.1.2 is unable to load GIF images.  On x86 / x86_64
this applies to most gifs which are not the first file in the filelist, while
on mips/mipsel and (some?) arm boxes it is unable to load any gif files. Since
feh's tests include gifs, they fail.

As there's nothing we can do about it (and other image formats still work
fine), we'll just pretend everything's okay.