File: 04-fix-tests-path.patch

package info (click to toggle)
ruby-json 2.18.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,780 kB
  • sloc: ruby: 4,758; ansic: 4,290; java: 4,254; sh: 22; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Lucas Nussbaum <lucas@debian.org>
Date: Mon, 26 Dec 2022 14:10:24 +0100
Subject: Let debian/ruby-tests.rb handle the test suite loading

Origin: vendor
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634438
Last-Update: 2017-07-07

Was causing FTBFS because ext was loaded.
---
 tests/test_helper.rb | 3 ---
 1 file changed, 3 deletions(-)

--- a/test/json/test_helper.rb
+++ b/test/json/test_helper.rb
@@ -1,5 +1,3 @@
-$LOAD_PATH.unshift(File.expand_path('../../../ext', __FILE__), File.expand_path('../../../lib', __FILE__))
-
 if ENV["JSON_COVERAGE"]
   # This test helper is loaded inside Ruby's own test suite, so we try to not mess it up.
   require 'coverage'