summaryrefslogtreecommitdiff
blob: fefd0ffd1a516116bd59908471c5f50e75e0cbc9 (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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
From 6c9a65ff8a2c896e7359d9b2da47fc8836c5dfe9 Mon Sep 17 00:00:00 2001
From: Kent Fredric <kentnl@gentoo.org>
Date: Wed, 28 Feb 2018 08:34:19 +1300
Subject: Fix test failures on 5.26+ due to removal of '.' from @INC

'.' not being in @INC means `require "foo"` no longer implies
`require "./foo"` will occur as a result of @INC traversal.

This changes to use explicit paths ( ie: paths with a leading '/'
 or './' ) which disables @INC traversal and restores expected
semantics.

Bug: https://rt.cpan.org/Ticket/Display.html?id=124610
Bug: https://bugs.gentoo.org/623128
---
 t/api.t                       | 2 +-
 t/cleanup.t                   | 2 +-
 t/client-time-unsync.t        | 2 +-
 t/coalesce.t                  | 2 +-
 t/dead-dbs.t                  | 2 +-
 t/declined.t                  | 2 +-
 t/empty-db.t                  | 2 +-
 t/evenly-distribute.t         | 2 +-
 t/fail-working-multiple.t     | 2 +-
 t/funcid.t                    | 2 +-
 t/grab-race.t                 | 2 +-
 t/grab_and_work_on.t          | 2 +-
 t/high-funcid-starvation.t    | 2 +-
 t/insert-and-do.t             | 2 +-
 t/parallel-workers.t          | 2 +-
 t/priority.t                  | 2 +-
 t/replace-abort.t             | 2 +-
 t/replace-with.t              | 2 +-
 t/retry-delay.t               | 2 +-
 t/scoreboard.t                | 2 +-
 t/server-time.t               | 2 +-
 t/unique.t                    | 2 +-
 t/work-before-funcids-exist.t | 2 +-
 23 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/t/api.t b/t/api.t
index 9d4d177..fb9c7b2 100644
--- a/t/api.t
+++ b/t/api.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 58 * 3;
diff --git a/t/cleanup.t b/t/cleanup.t
index 034dc59..f13f23f 100644
--- a/t/cleanup.t
+++ b/t/cleanup.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 30;
diff --git a/t/client-time-unsync.t b/t/client-time-unsync.t
index fa19a85..fd10047 100644
--- a/t/client-time-unsync.t
+++ b/t/client-time-unsync.t
@@ -17,7 +17,7 @@ BEGIN {
 }
 no warnings 'redefine';
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 2;
diff --git a/t/coalesce.t b/t/coalesce.t
index b42f732..0c152f4 100644
--- a/t/coalesce.t
+++ b/t/coalesce.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 14 * 3;
diff --git a/t/dead-dbs.t b/t/dead-dbs.t
index eee73a6..673f5b4 100644
--- a/t/dead-dbs.t
+++ b/t/dead-dbs.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 6;
diff --git a/t/declined.t b/t/declined.t
index 8fca90d..78dca2f 100644
--- a/t/declined.t
+++ b/t/declined.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => (5 + 21) * 3;
diff --git a/t/empty-db.t b/t/empty-db.t
index 17353cd..6fc9bc1 100644
--- a/t/empty-db.t
+++ b/t/empty-db.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 9;
diff --git a/t/evenly-distribute.t b/t/evenly-distribute.t
index 56533f0..3fc9082 100644
--- a/t/evenly-distribute.t
+++ b/t/evenly-distribute.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 12;
diff --git a/t/fail-working-multiple.t b/t/fail-working-multiple.t
index 3750fc7..94f07f7 100644
--- a/t/fail-working-multiple.t
+++ b/t/fail-working-multiple.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 12;
diff --git a/t/funcid.t b/t/funcid.t
index f363791..60510ba 100644
--- a/t/funcid.t
+++ b/t/funcid.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 24;
diff --git a/t/grab-race.t b/t/grab-race.t
index 1071362..efcdff8 100644
--- a/t/grab-race.t
+++ b/t/grab-race.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 2;
diff --git a/t/grab_and_work_on.t b/t/grab_and_work_on.t
index 7f7628e..be99827 100644
--- a/t/grab_and_work_on.t
+++ b/t/grab_and_work_on.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 27;
diff --git a/t/high-funcid-starvation.t b/t/high-funcid-starvation.t
index 8469e9d..c879049 100644
--- a/t/high-funcid-starvation.t
+++ b/t/high-funcid-starvation.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 12;
diff --git a/t/insert-and-do.t b/t/insert-and-do.t
index f6cc9f9..662abbd 100644
--- a/t/insert-and-do.t
+++ b/t/insert-and-do.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 26 * 3;
diff --git a/t/parallel-workers.t b/t/parallel-workers.t
index 1834041..5300385 100644
--- a/t/parallel-workers.t
+++ b/t/parallel-workers.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 2;
diff --git a/t/priority.t b/t/priority.t
index b6e1208..3ce6c6e 100644
--- a/t/priority.t
+++ b/t/priority.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => ( ( 31 * 3 ) + ( 16 * 3 ) + ( 12 * 3 ) );
diff --git a/t/replace-abort.t b/t/replace-abort.t
index 86d70f0..252bfb0 100644
--- a/t/replace-abort.t
+++ b/t/replace-abort.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 13;
diff --git a/t/replace-with.t b/t/replace-with.t
index f9e7978..6887988 100644
--- a/t/replace-with.t
+++ b/t/replace-with.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 30;
diff --git a/t/retry-delay.t b/t/retry-delay.t
index 27c5663..fdda944 100644
--- a/t/retry-delay.t
+++ b/t/retry-delay.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 24;
diff --git a/t/scoreboard.t b/t/scoreboard.t
index c19a9d8..bc197d0 100644
--- a/t/scoreboard.t
+++ b/t/scoreboard.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use Test::More tests => 30;
 
diff --git a/t/server-time.t b/t/server-time.t
index 870ab8e..47ded3a 100644
--- a/t/server-time.t
+++ b/t/server-time.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 6;
diff --git a/t/unique.t b/t/unique.t
index f0bcea5..e013a32 100644
--- a/t/unique.t
+++ b/t/unique.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 18;
diff --git a/t/work-before-funcids-exist.t b/t/work-before-funcids-exist.t
index 9c06e43..17efbbc 100644
--- a/t/work-before-funcids-exist.t
+++ b/t/work-before-funcids-exist.t
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-require 't/lib/db-common.pl';
+require './t/lib/db-common.pl';
 
 use TheSchwartz;
 use Test::More tests => 6;
-- 
2.15.1