From: shyouhei@... Date: 2017-12-31T13:22:43+00:00 Subject: [ruby-core:84571] [Ruby trunk Bug#14260] test failure related with proc arity on 32-bit environment (e.g. Solaris 10 with 32-bit compile) Issue #14260 has been updated by shyouhei (Shyouhei Urabe). > ��������������������������������������������� unsigned int ���������������C��������������������������������������������� ���������������������������������������C������������������������������������������������������������������������������������������������������������������������������������������������������������������������������? ---------------------------------------- Bug #14260: test failure related with proc arity on 32-bit environment (e.g. Solaris 10 with 32-bit compile) https://bugs.ruby-lang.org/issues/14260#change-69113 * Author: ngoto (Naohisa Goto) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED ---------------------------------------- ������������ r59358 ���������sparc ��� Solaris 10 ������ Oracle Developer Studio (Oracle Solaris Studio) 12.x ������ 32��������������������������������������� make test-all ������������������������ failure ������������������������������������ (��������� r61515 ������������) ~~~ 1) Failure: TestLazyEnumerator#test_each_cons_limit [/XXXXX/test/ruby/test_lazy_enumerator.rb:548]: <[[1, 2], [2, 3]]> expected but was <[[2, 3], [2, 3]]>. 2) Failure: TestProc#test_bound_parameters [/XXXXX/test/ruby/test_proc.rb:1184]: <[[:rest]]> expected but was <[]>. 3) Failure: TestEnumerator#test_cons [/XXXXX/test/ruby/test_enumerator.rb:118]: <[[1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, 6], [5, 6, 7], [6, 7, 8], [7, 8, 9], [8, 9, 10]]> expected but was <[[8, 9, 10], [8, 9, 10], [8, 9, 10], [8, 9, 10], [8, 9, 10], [8, 9, 10], [8, 9, 10], [8, 9, 10]]>. 4) Failure: TestEnumerator#test_slice [/XXXXX/test/ruby/test_enumerator.rb:113]: <[[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]]> expected but was <[[10], [10], [10], [10]]>. ������������ 6) Failure: TestProc#test_arity2 [/XXXXX/test/ruby/test_proc.rb:439]: <-1> expected but was <0>. 7) Failure: TestLazyEnumerator#test_each_slice_limit [/XXXXX/test/ruby/test_lazy_enumerator.rb:554]: <[[1, 2], [3, 4]]> expected but was <[[3, 4], [3, 4]]>. ������������ ~~~ ������������������������������������������������������������ ��������������������������������������������� unsigned int ���������������C��������������������������������������������� max ��� -1 ������������ UNLIMITED_ARGUMENTS ��������������������������������������������� ��������� unsigned int : 16 ������ 65535 ������������������������������������������������������ ��������������� signed int ������������������������������ 65535 ������������������������������������������������������������������ ���������������������������������C������������������������������������������������������������������������������ arity��� UNLIMITED_ARGUMENTS ��� 0 ������������������������������������������������ ���������Failure������������������������������ ���������64������������������������������������ `#else` ��������� `int min, max;` ������������������������������������������������������������������������Failre������������������������ ���������gcc ������ 16 ��������������������������������� -1 ������������������������������������������������������������������������������������������Failure������������������������������������������������������������������������������������������ ~~~ --- internal.h (revision 61515) +++ internal.h (working copy) @@ -912,12 +912,12 @@ /* IFUNC (Internal FUNCtion) */ struct vm_ifunc_argc { #if SIZEOF_INT * 2 > SIZEOF_VALUE - int min: (SIZEOF_VALUE * CHAR_BIT) / 2; - int max: (SIZEOF_VALUE * CHAR_BIT) / 2; + signed int min: (SIZEOF_VALUE * CHAR_BIT) / 2; + signed int max: (SIZEOF_VALUE * CHAR_BIT) / 2; #else int min, max; #endif }; ~~~ ���������Failure��������������������� Solaris ���������������������������32������������������������������������������������������������������������������������������������������������ ������������������������������������������������������������������������������������������������������������������������unsigned int ��������������������������������������������������������������������������������������������������������������������������������������������������������������������� -- https://bugs.ruby-lang.org/ Unsubscribe: