[DRE-commits] [ruby-memoize] 01/02: fix FTBFS: ERROR: Test "ruby1.9.1" failed (Closes: #725590).

Daisuke Higuchi dai at alioth.debian.org
Sun Oct 13 12:20:10 UTC 2013


This is an automated email from the git hooks/post-receive script.

dai pushed a commit to branch master
in repository ruby-memoize.

commit 056528c30f12d5c6c9823fd5662db4eeb10d2f84
Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
Date:   Sun Oct 13 21:19:32 2013 +0900

    fix FTBFS: ERROR: Test "ruby1.9.1" failed (Closes: #725590).
    
    thanks to  David Suárez <david.sephirot at gmail.com> and
    Adam D. Barratt <adam at adam-barratt.org.uk>.
---
 debian/patches/series                              |    1 +
 debian/patches/use_tmpdir_instead_of_homedir.patch |   25 ++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index f78486e..6843035 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 remove_rubygems_stuff_in_test_unit.patch
+use_tmpdir_instead_of_homedir.patch
diff --git a/debian/patches/use_tmpdir_instead_of_homedir.patch b/debian/patches/use_tmpdir_instead_of_homedir.patch
new file mode 100644
index 0000000..4fce45d
--- /dev/null
+++ b/debian/patches/use_tmpdir_instead_of_homedir.patch
@@ -0,0 +1,25 @@
+Description: use tmpdir instead of homedir
+Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
+Last-Update: 2013-10-13
+
+Index: ruby-memoize/test/test_memoize.rb
+===================================================================
+--- ruby-memoize.orig/test/test_memoize.rb	2013-10-13 21:05:22.883979804 +0900
++++ ruby-memoize/test/test_memoize.rb	2013-10-13 21:06:20.851463813 +0900
+@@ -4,6 +4,7 @@
+ # Test suite for the memoize library.
+ ###############################################
+ require 'test/unit'
++require 'tmpdir'
+ require 'memoize'
+ 
+ class TC_Memoize < Test::Unit::TestCase
+@@ -12,7 +13,7 @@
+    def setup
+       @cache1 = nil
+       @cache2 = nil
+-      @file   = File.join((ENV['HOME'] || ENV['USERPROFILE']), 'test.cache')
++      @file   = File.join(Dir.tmpdir, 'test.cache')
+    end
+ 
+    def fib(n)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-memoize.git



More information about the Pkg-ruby-extras-commits mailing list