Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

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

Location:
EcnlProtoTool/trunk/mruby-1.3.0
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mruby-1.3.0/test/t/exception.rb

    r321 r331  
    339339        1 * "b"
    340340      ensure
    341         @e = self.z
    342       end
    343     end
    344 
     341        @e = self.zz
     342      end
     343    end
     344
     345    def zz
     346      true
     347    end
    345348    def z
    346349      true
     
    351354
    352355assert('Exception#inspect without message') do
    353   assert_equal "Exception: Exception", Exception.new.inspect
     356  assert_equal "Exception", Exception.new.inspect
    354357end
    355358
     
    374377end
    375378
    376 assert('Raise in rescue') do
    377   assert_raise(ArgumentError) do
    378     begin
    379       raise "" # RuntimeError
    380     rescue
    381       raise ArgumentError
    382     end
    383   end
    384 end
     379def backtrace_available?
     380  begin
     381    raise "XXX"
     382  rescue => exception
     383    not exception.backtrace.empty?
     384  end
     385end
     386
     387assert('GC in rescue') do
     388  skip "backtrace isn't available" unless backtrace_available?
     389
     390  line = nil
     391  begin
     392    [1].each do
     393      [2].each do
     394        [3].each do
     395          line = __LINE__; raise "XXX"
     396        end
     397      end
     398    end
     399  rescue => exception
     400    GC.start
     401    assert_equal("#{__FILE__}:#{line}:in call",
     402                 exception.backtrace.first)
     403  end
     404end
     405
     406assert('Method call in rescue') do
     407  skip "backtrace isn't available" unless backtrace_available?
     408
     409  line = nil
     410  begin
     411    [1].each do
     412      [2].each do
     413        line = __LINE__; raise "XXX"
     414      end
     415    end
     416  rescue => exception
     417    [3].each do
     418    end
     419    assert_equal("#{__FILE__}:#{line}:in call",
     420                 exception.backtrace.first)
     421  end
     422end
Note: See TracChangeset for help on using the changeset viewer.