Actions
Bug #3490
closedtest_pack_utf8 failure on mswin64
Bug #3490:
test_pack_utf8 failure on mswin64
ruby -v:
ruby 1.9.3dev (2010-06-27 trunk 28450) [x64-mswin64_90]
Backport:
Description
=begin
test_integer_combのtest_pack_utf8がmswin64環境で失敗します。
aが-0x80000001の時に期待されているRangeErrorが投げられずに素通りします。
NUM2LONGの戻り値の型がlongなので、pack.:908行目で小さい型への変換が起こるようです。
NUM2LONGを使わずに、直接NUM2LONG_internalに置き換えると成功します。
Z:\ruby_trunk\build>nmake test-all TESTS=ruby\test_integer_comb.rb
Microsoft(R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
.\ruby.exe -I../lib -I".ext/x64-mswin64_90" "../tool/runruby.rb" --extou
t=".ext" -- "../test/runner.rb" ruby\test_integer_comb.rb
Loaded suite ../test/runner
Started
..................F....................
Finished in 6.465000 seconds.
- Failure:
test_pack_utf8(TestIntegerComb) [Z:/ruby_trunk/test/ruby/test_integer_comb.rb:61
4]:
RangeError expected but nothing was raised.
39 tests, 1332736 assertions, 1 failures, 0 errors, 0 skips
Test run options: --seed 56768
NMAKE : fatal error U1077: '.\ruby.exe' : リターン コード '0x1'
Stop.
=end
Actions