Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/tins/files: tins-0.4.3-gentoo.patch
Date: Sun, 08 Jul 2012 12:45:05
Message-Id: 20120708124455.F099120063@flycatcher.gentoo.org
1 flameeyes 12/07/08 12:44:55
2
3 Added: tins-0.4.3-gentoo.patch
4 Log:
5 Version bump; this version requires the latest test-unit-2 with the new script, and uses the new support in the eclass for it.
6
7 (Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-ruby/tins/files/tins-0.4.3-gentoo.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/tins/files/tins-0.4.3-gentoo.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/tins/files/tins-0.4.3-gentoo.patch?rev=1.1&content-type=text/plain
14
15 Index: tins-0.4.3-gentoo.patch
16 ===================================================================
17 diff --git a/tests/find_test.rb b/tests/find_test.rb
18 index 63bc9c7..22df1e2 100644
19 --- a/tests/find_test.rb
20 +++ b/tests/find_test.rb
21 @@ -31,8 +31,13 @@ module Tins
22 assert_equal [ @work_dir, file ], find(@work_dir, :show_hidden => true).to_a
23 end
24
25 - if RUBY_PLATFORM !~ /java/
26 - def test_check_directory_without_access
27 + def test_check_directory_without_access
28 + # do not run this test on JRuby
29 + omit_if(RUBY_PLATFORM =~ /java/, "Can't run the test on JRuby")
30 + # do not run this test if we're root, as it will fail.
31 + omit_if(Process::UID.eid == 0, "Can't run the test as root")
32 +
33 + begin
34 mkdir_p directory1 = File.join(@work_dir, 'foo')
35 mkdir_p directory2 = File.join(directory1, 'bar')
36 touch file = File.join(directory2, 'file')
37 diff --git a/tests/test_helper.rb b/tests/test_helper.rb
38 index e56071a..fbb1635 100644
39 --- a/tests/test_helper.rb
40 +++ b/tests/test_helper.rb
41 @@ -4,4 +4,5 @@ if ENV['START_SIMPLECOV'].to_i == 1
42 add_filter "#{File.basename(File.dirname(__FILE__))}/"
43 end
44 end
45 +gem 'test-unit', '~> 2.4'
46 require 'test/unit'