Package: ruby-gettext / 3.0.2-2~bpo70+1

0002-Make-test-unit-notify-and-test-unit-rr-optional-to-r.patch Patch series | 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
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lunar@debian.org>
Date: Sat, 16 Mar 2013 16:21:28 +0000
Subject: Make test-unit-notify and test-unit-rr optional to run the tests

---
 test/run-test.rb |   16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/test/run-test.rb b/test/run-test.rb
index 48d7242..24bfee6 100755
--- a/test/run-test.rb
+++ b/test/run-test.rb
@@ -29,8 +29,20 @@ $LOAD_PATH.unshift(lib_dir)
 $LOAD_PATH.unshift(test_dir)
 
 require "test-unit"
-require "test/unit/notify"
-require "test/unit/rr"
+begin
+  require "test/unit/notify"
+rescue LoadError
+  # Let's do without notifications
+end
+begin
+  require "test/unit/rr"
+rescue LoadError
+  # Include RR manually
+  require "rr"
+  class Test::Unit::TestCase
+    include RR::Adapters::TestUnit
+  end
+end
 
 require "gettext-test-utils"