diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2023-11-17 11:01:55 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2023-11-17 11:01:55 +0900 |
| commit | 498b086c374608005278c0f7d105df1925e13a22 (patch) | |
| tree | dec21705ecfe3702d57bd344115ea4756447cd74 | |
| parent | 3bc41f4f0b0823e37ac0e89f7943dfe181e005b9 (diff) | |
Skip test_ForwardingArgumentsNode
due to a failure on a CI
http://ci.rvm.jp/results/trunk-iseq_binary@ruby-sp2-docker/4779277
```
expected:
== disasm: #<ISeq:prism_test_forwarding_arguments_node1@<compiled>:2 (2,8)-(4,11)>
local table (size: 1, argc: 0 [opts: 0, rest: -1, post: 0, block: -1, kw: -1@-1, kwrest: 1])
[ 1] "..."@0
0000 putself ( 3)
0001 getlocal_WC_0 ?@-2
0003 splatarray false
0005 getblockparamproxy ?@-1, 0
0008 send <calldata!mid:prism_test_forwarding_arguments_node, argc:1, ARGS_SPLAT|ARGS_BLOCKARG|FCALL>, nil
0011 leave ( 2)
actual:
== disasm: #<ISeq:prism_test_forwarding_arguments_node1@<compiled>:2 (2,8)-(4,11)>
local table (size: 1, argc: 0 [opts: 0, rest: -1, post: 0, block: -1, kw: -1@-1, kwrest: 1])
[ 1] "..."@0
0000 putself ( 3)
0001 getlocal_WC_0 ?@-2
0003 splatarray false
0005 getblockparamproxy "!"@-1, 0
0008 send <calldata!mid:prism_test_forwarding_arguments_node, argc:1, ARGS_SPLAT|ARGS_BLOCKARG|FCALL>, nil
0011 leave ( 2)
/tmp/ruby/src/trunk-iseq_binary/tool/lib/iseq_loader_checker.rb:36:in `exit': exit (SystemExit)
```
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 6656889388..269b6953ca 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -862,6 +862,31 @@ module Prism end def test_ForwardingArgumentsNode + # http://ci.rvm.jp/results/trunk-iseq_binary@ruby-sp2-docker/4779277 + # + # expected: + # == disasm: #<ISeq:prism_test_forwarding_arguments_node1@<compiled>:2 (2,8)-(4,11)> + # local table (size: 1, argc: 0 [opts: 0, rest: -1, post: 0, block: -1, kw: -1@-1, kwrest: 1]) + # [ 1] "..."@0 + # 0000 putself ( 3) + # 0001 getlocal_WC_0 ?@-2 + # 0003 splatarray false + # 0005 getblockparamproxy ?@-1, 0 + # 0008 send <calldata!mid:prism_test_forwarding_arguments_node, argc:1, ARGS_SPLAT|ARGS_BLOCKARG|FCALL>, nil + # 0011 leave ( 2) + # actual: + # == disasm: #<ISeq:prism_test_forwarding_arguments_node1@<compiled>:2 (2,8)-(4,11)> + # local table (size: 1, argc: 0 [opts: 0, rest: -1, post: 0, block: -1, kw: -1@-1, kwrest: 1]) + # [ 1] "..."@0 + # 0000 putself ( 3) + # 0001 getlocal_WC_0 ?@-2 + # 0003 splatarray false + # 0005 getblockparamproxy "!"@-1, 0 + # 0008 send <calldata!mid:prism_test_forwarding_arguments_node, argc:1, ARGS_SPLAT|ARGS_BLOCKARG|FCALL>, nil + # 0011 leave ( 2) + + omit "fails on trunk-iseq_binary" + assert_prism_eval(<<-CODE) def prism_test_forwarding_arguments_node(...); end; def prism_test_forwarding_arguments_node1(...) |
