summaryrefslogtreecommitdiff
blob: d7794887fc3301c52e0d2db067d7a5415047aaaf (plain)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
From 9a7d82a8994505ad4c6552540d26c7586073e459 Mon Sep 17 00:00:00 2001
From: Kent Fredric <kentnl@gentoo.org>
Date: Sat, 7 Oct 2017 19:08:53 +1300
Subject: Fix test failures on Perl 5.26

This also replaces "do" with a stricter 'require' as that will properly
fail on nested errors instead of silently failing

Bug: https://rt.cpan.org/Ticket/Display.html?id=121132
Bug: https://bugs.gentoo.org/615582
---
 t/box-calls.t        | 2 +-
 t/box-scaling.t      | 2 +-
 t/box-showtable.t    | 2 +-
 t/box-widths.t       | 2 +-
 t/box-wrap.t         | 2 +-
 t/html-calls.t       | 2 +-
 t/html-scaling.t     | 2 +-
 t/html-showtable.t   | 2 +-
 t/html-widths.t      | 2 +-
 t/html-wrap.t        | 2 +-
 t/list-calls.t       | 2 +-
 t/list-scaling.t     | 2 +-
 t/list-showtable.t   | 2 +-
 t/list-widths.t      | 2 +-
 t/list-wrap.t        | 2 +-
 t/simple-calls.t     | 2 +-
 t/simple-scaling.t   | 2 +-
 t/simple-showtable.t | 2 +-
 t/simple-widths.t    | 2 +-
 t/simple-wrap.t      | 2 +-
 20 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/t/box-calls.t b/t/box-calls.t
index 74a1ad9..ee6e26d 100755
--- a/t/box-calls.t
+++ b/t/box-calls.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/box-scaling.t b/t/box-scaling.t
index 74a1ad9..c95e2fd 100755
--- a/t/box-scaling.t
+++ b/t/box-scaling.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl"
diff --git a/t/box-showtable.t b/t/box-showtable.t
index 74a1ad9..ee6e26d 100755
--- a/t/box-showtable.t
+++ b/t/box-showtable.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/box-widths.t b/t/box-widths.t
index 74a1ad9..ee6e26d 100755
--- a/t/box-widths.t
+++ b/t/box-widths.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/box-wrap.t b/t/box-wrap.t
index 74a1ad9..ee6e26d 100755
--- a/t/box-wrap.t
+++ b/t/box-wrap.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/html-calls.t b/t/html-calls.t
index 74a1ad9..ee6e26d 100755
--- a/t/html-calls.t
+++ b/t/html-calls.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/html-scaling.t b/t/html-scaling.t
index 74a1ad9..ee6e26d 100755
--- a/t/html-scaling.t
+++ b/t/html-scaling.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/html-showtable.t b/t/html-showtable.t
index 74a1ad9..ee6e26d 100755
--- a/t/html-showtable.t
+++ b/t/html-showtable.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/html-widths.t b/t/html-widths.t
index 74a1ad9..ee6e26d 100755
--- a/t/html-widths.t
+++ b/t/html-widths.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/html-wrap.t b/t/html-wrap.t
index 74a1ad9..ee6e26d 100755
--- a/t/html-wrap.t
+++ b/t/html-wrap.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/list-calls.t b/t/list-calls.t
index 74a1ad9..ee6e26d 100755
--- a/t/list-calls.t
+++ b/t/list-calls.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/list-scaling.t b/t/list-scaling.t
index 74a1ad9..ee6e26d 100755
--- a/t/list-scaling.t
+++ b/t/list-scaling.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/list-showtable.t b/t/list-showtable.t
index 74a1ad9..ee6e26d 100755
--- a/t/list-showtable.t
+++ b/t/list-showtable.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/list-widths.t b/t/list-widths.t
index 74a1ad9..ee6e26d 100755
--- a/t/list-widths.t
+++ b/t/list-widths.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/list-wrap.t b/t/list-wrap.t
index 74a1ad9..ee6e26d 100755
--- a/t/list-wrap.t
+++ b/t/list-wrap.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/simple-calls.t b/t/simple-calls.t
index 74a1ad9..ee6e26d 100755
--- a/t/simple-calls.t
+++ b/t/simple-calls.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/simple-scaling.t b/t/simple-scaling.t
index 74a1ad9..ee6e26d 100755
--- a/t/simple-scaling.t
+++ b/t/simple-scaling.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/simple-showtable.t b/t/simple-showtable.t
index 74a1ad9..ee6e26d 100755
--- a/t/simple-showtable.t
+++ b/t/simple-showtable.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/simple-widths.t b/t/simple-widths.t
index 74a1ad9..ee6e26d 100755
--- a/t/simple-widths.t
+++ b/t/simple-widths.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
diff --git a/t/simple-wrap.t b/t/simple-wrap.t
index 74a1ad9..ee6e26d 100755
--- a/t/simple-wrap.t
+++ b/t/simple-wrap.t
@@ -25,4 +25,4 @@ $what = "t/$what" if -d "t" && !-r "$what.pl";
 unshift(@INC,'../blib/lib') if -d '../blib/lib';
 unshift(@INC,'t') if -d 't';
 
-do "$what.pl";
+require "./$what.pl";
-- 
2.14.1