summaryrefslogtreecommitdiff
path: root/test/feh.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-11-30 19:21:43 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-11-30 19:27:15 +0100
commit2d37cd91c6718316188e7fd99088cda0e627db74 (patch)
tree756102b8ac6f56dbf6281a03ead023205fd0bef9 /test/feh.t
parent2e4fc9018d5776bd63d48c2b4824ef04b3235ebc (diff)
Check magic bytes before passing a file to Imlib2's loader
This works around a regression in Imlib2, which makes (un)loadable file detection quite slow when handling e.g. large video files. See <https://phab.enlightenment.org/T8739> and <https://github.com/derf/feh/issues/505> for details. Closes #505
Diffstat (limited to 'test/feh.t')
-rw-r--r--test/feh.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/feh.t b/test/feh.t
index baf5ee4..44f705f 100644
--- a/test/feh.t
+++ b/test/feh.t
@@ -47,7 +47,7 @@ if ( $version =~ m{ Compile-time \s switches : \s .* help }ox ) {
}
my $re_warning
- = qr{${feh_name} WARNING: test/fail/... \- No Imlib2 loader for that file format\n};
+ = qr{${feh_name} WARNING: test/fail/... \- Does not look like an image \(magic bytes missing\)\n};
my $re_loadable = qr{test/ok/...};
my $re_unloadable = qr{test/fail/...};
my $re_list_action = qr{test/ok/... 16x16};