mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_require.rb (TestRequire#test_require_nonascii_path):
fix load path for encoding to run the test as stand-alone. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8ee121d060
commit
e4283fd39d
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Apr 6 11:23:18 2013 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||
|
||||
* test/ruby/test_require.rb (TestRequire#test_require_nonascii_path):
|
||||
fix load path for encoding to run the test as stand-alone.
|
||||
|
||||
Sat Apr 6 09:54:20 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* pack.c (NATINT_LEN): fix definition order, must be after
|
||||
|
|
|
@ -73,7 +73,9 @@ class TestRequire < Test::Unit::TestCase
|
|||
open(require_path, "wb") {}
|
||||
assert_in_out_err([], <<-INPUT, %w(:ok), [], bug8165)
|
||||
# coding: #{encoding}
|
||||
$:.replace([IO::NULL] + $:.reject {|path| path !~ /\.ext/})
|
||||
# leave paths for require encoding objects
|
||||
enc_path = Regexp.new(RUBY_PLATFORM)
|
||||
$:.replace([IO::NULL] + $:.reject {|path| enc_path !~ path})
|
||||
p :ok if require '#{require_path}'
|
||||
p :ng if require '#{require_path}'
|
||||
INPUT
|
||||
|
|
Loading…
Reference in a new issue