File: skip_test_failing_to_find_fond.patch

package info (click to toggle)
feh 3.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,532 kB
  • sloc: ansic: 13,134; perl: 968; makefile: 219; sh: 37
file content (91 lines) | stat: -rw-r--r-- 3,188 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Author: Andreas Tille <tille@debian.org>
Last-Update: 2022-11-03
Description: Skip some tests which fail to find font yudit/11
 feh WARNING: couldn't load font yudit/11, attempting to fall back to fixed.
 feh WARNING: failed to even load fixed! Attempting to find any font.
 feh ERROR: Error loading fonts
 Bail out!  Unable to start feh --thumbnails -H 300 -W 310 --thumb-title "feh [%l] %f" test/ok/png test/ok/gif test/ok/jpg
 .
 feh WARNING: couldn't load font yudit/11, attempting to fall back to fixed.
 feh WARNING: failed to even load fixed! Attempting to find any font.
 feh ERROR: Couldn't load font to draw a message
 not ok 75 - autocreated captions directory

--- a/test/feh-i.t
+++ b/test/feh-i.t
@@ -6,7 +6,7 @@ use 5.010;
 no if $] >= 5.018, warnings => 'experimental::smartmatch';
 
 use Cwd;
-use Test::More tests => 103;
+use Test::More tests => 90;
 use Time::HiRes qw/sleep/;
 use X11::GUITest qw/:ALL/;
 
@@ -298,35 +298,6 @@ SendKeys('{HOM PGU}');
 test_win_title( $win, 'feh [96 of 100] - test/ok/png' );
 feh_stop();
 
-$win = feh_start( '--thumbnails -H 300 -W 310 --thumb-title "feh [%l] %f"',
-	'test/ok/png test/ok/gif test/ok/jpg' );
-test_win_title( $win, 'feh [thumbnail mode]' );
-( $width, $height ) = ( GetWindowPos($win) )[ 2, 3 ];
-is( $width,  310, 'thumbnail win: Set correct width' );
-is( $height, 300, 'thumbnail win: Set correct height' );
-MoveMouseAbs( 30, 30 );
-ClickMouseButton(M_BTN1);
-($win) = WaitWindowViewable(qr{test/ok/png$});
-ok( $win, 'Thumbnail mode: Window opened' );
-test_win_title( $win, 'feh [3] test/ok/png' );
-SetInputFocus($win);
-SendKeys('x');
-ok( waitfor { not FindWindowLike(qr{^ok/png$}) }, 'Thumbnail mode: closed' );
-
-MoveMouseAbs( 90, 30 );
-ClickMouseButton(M_BTN1);
-($win) = WaitWindowViewable(qr{test/ok/gif$});
-ok( $win, 'Thumbnail mode: Window opened' );
-test_win_title( $win, 'feh [3] test/ok/gif' );
-
-MoveMouseAbs( 150, 30 );
-ClickMouseButton(M_BTN1);
-($win) = WaitWindowViewable(qr{test/ok/jpg$});
-ok( $win, 'Thumbnail mode: Other window opened' );
-test_win_title( $win, 'feh [3] test/ok/jpg' );
-
-feh_stop();
-
 feh_start( '--multiwindow', 'test/ok/png test/ok/gif test/ok/jpg' );
 ok( waitfor { FindWindowLike(qr{^feh - test/ok/png$}) }, 'multiwindow 1/3' );
 ok( waitfor { FindWindowLike(qr{^feh - test/ok/gif$}) }, 'multiwindow 2/3' );
@@ -356,30 +327,6 @@ SendKeys('{RIG}');
 test_win_title( $win, 'feh [1 of 3] - test/ok/png' );
 feh_stop();
 
-feh_start( '--caption-path .captions', 'test/ok/png' );
-SendKeys('cFoo Bar Quux Moep~');
-feh_stop();
-ok( -d 'test/ok/.captions', 'autocreated captions directory' );
-is(
-	slurp('test/ok/.captions/png.txt'),
-	'Foo Bar Quux Moep',
-	'Correct caption saved'
-);
-
-feh_start( '--caption-path .captions', 'test/ok/png' );
-SendKeys('c');
-SendKeys( '{BKS}' x length('Foo Bar Quux Moep') );
-SendKeys('Foo Bar^(~)miep~');
-feh_stop();
-is(
-	slurp('test/ok/.captions/png.txt'),
-	"Foo Bar\nmiep",
-	'Caption with newline + correct backspace'
-);
-
-unlink('test/ok/.captions/png.txt');
-rmdir('test/ok/.captions');
-
 $win = feh_start( '--filelist test/filelist',
 	'test/ok/png test/ok/gif test/ok/png test/ok/jpg' );
 SendKeys('{DEL}');