Last change
on this file since 331 was 331, checked in by coas-nagasima, 6 years ago |
prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-ruby
|
File size:
596 bytes
|
Line | |
---|
1 | $dir = File.join(Dir.tmpdir, "mruby-require-test-#{Time.now.to_i}.#{Time.now.usec}")
|
---|
2 |
|
---|
3 | def test_setup
|
---|
4 | Dir.mkdir($dir) unless File.exist?($dir)
|
---|
5 |
|
---|
6 | File.open(File.join($dir, "foo.rb"), "w") do |f|
|
---|
7 | f.puts "$require_context = self"
|
---|
8 | end
|
---|
9 | end
|
---|
10 |
|
---|
11 | def test_cleanup
|
---|
12 | if $dir && File.exist?($dir)
|
---|
13 | Dir.entries($dir).each do |e|
|
---|
14 | next if ['.', '..'].include? e
|
---|
15 | File.unlink File.join($dir,e)
|
---|
16 | end
|
---|
17 | Dir.unlink $dir
|
---|
18 | end
|
---|
19 | end
|
---|
20 |
|
---|
21 |
|
---|
22 | #####
|
---|
23 | test_setup
|
---|
24 | #####
|
---|
25 |
|
---|
26 | assert("require context") do
|
---|
27 | require File.join($dir, 'foo.rb')
|
---|
28 | assert_equal self, $require_context
|
---|
29 | end
|
---|
30 |
|
---|
31 | #####
|
---|
32 | test_cleanup
|
---|
33 | #####
|
---|
Note:
See
TracBrowser
for help on using the repository browser.