From fc9b1deb56fb26e79788ba97193097923a883a84 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 12 Mar 2011 23:38:24 +0100 Subject: Fix segfault upon unloadable image with --title %h/%w/... (closes GH-35) --- test/feh.i | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/feh.i b/test/feh.i index 7ac6202..231f260 100755 --- a/test/feh.i +++ b/test/feh.i @@ -4,7 +4,7 @@ use warnings; use 5.010; use Cwd; -use Test::More tests => 102; +use Test::More tests => 103; use Time::HiRes qw/sleep/; use X11::GUITest qw/:ALL/; @@ -445,3 +445,9 @@ ok(waitfor { }, 'disabled screen clip'); feh_stop(); + +# GH-35 "Custom window title crashes feh on unloadable files" +$win = feh_start('--title "feh %h"', 'test/ok/png test/fail/png test/ok/jpg'); +SendKeys('{RIG}'); +test_win_title($win, 'feh 16'); +feh_stop(); -- cgit v1.2.3