From 6bc65b35bdf8611837a81dd381eb8c7b61442fc6 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 7 Aug 2010 00:29:52 +0000 Subject: * test/ruby/envutil.rb (assert_normal_exit): use assert. fix faildesc. * test/pathname/test_pathname.rb (test_lchmod): test Pathname#lchmod using assert_normal_exit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/pathname/test_pathname.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/pathname/test_pathname.rb') diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 6ad95441ee..94bcffafbd 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -7,6 +7,8 @@ require 'fileutils' require 'tmpdir' require 'enumerator' +require_relative '../ruby/envutil' + class TestPathname < Test::Unit::TestCase def self.define_assertion(name, &block) @defassert_num ||= {} @@ -732,6 +734,7 @@ class TestPathname < Test::Unit::TestCase File.symlink("a", "l") path = Pathname("l") old = path.lstat.mode + assert_normal_exit %{ require "pathname"; Pathname("foo").lchmod(nil) } begin path.lchmod(0444) rescue NotImplementedError -- cgit v1.2.3