diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-25 20:06:19 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-26 18:41:51 +0100 |
commit | 4e0bfb790b32f30ed766378e6f538376b8be16f1 (patch) | |
tree | 10ce03a68ba4a26dbad8475d041d939acfdd07a7 /main/ruby/test_insns-lower-recursion-depth.patch | |
parent | da51282df4136ec8d019d46a05f09edd97633483 (diff) | |
download | aports-4e0bfb790b32f30ed766378e6f538376b8be16f1.tar.bz2 aports-4e0bfb790b32f30ed766378e6f538376b8be16f1.tar.xz |
main/ruby: upgrade to 2.5.0
Diffstat (limited to 'main/ruby/test_insns-lower-recursion-depth.patch')
-rw-r--r-- | main/ruby/test_insns-lower-recursion-depth.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/ruby/test_insns-lower-recursion-depth.patch b/main/ruby/test_insns-lower-recursion-depth.patch new file mode 100644 index 0000000000..77d827997b --- /dev/null +++ b/main/ruby/test_insns-lower-recursion-depth.patch @@ -0,0 +1,47 @@ +The patched test is a recursion function. We have lower stack size, +so we hit SystemStackError sooner than on other platforms. + + #361 test_insns.rb:389:in `block in <top (required)>': + # recursive once + def once n + return %r/#{ + if n == 0 + true + else + once(n-1) # here + end + }/ox + end + x = once(128); x = once(7); x = once(16); + x =~ "true" && $~ + #=> "" (expected "true") once + Stderr output is not empty + bootstraptest.tmp.rb:3:in `once': stack level too deep (SystemStackError) + from bootstraptest.tmp.rb:7:in `block in once' + from bootstraptest.tmp.rb:3:in `once' + from bootstraptest.tmp.rb:7:in `block in once' + from bootstraptest.tmp.rb:3:in `once' + from bootstraptest.tmp.rb:7:in `block in once' + from bootstraptest.tmp.rb:3:in `once' + from bootstraptest.tmp.rb:7:in `block in once' + from bootstraptest.tmp.rb:3:in `once' + ... 125 levels... + from bootstraptest.tmp.rb:3:in `once' + from bootstraptest.tmp.rb:7:in `block in once' + from bootstraptest.tmp.rb:3:in `once' + from bootstraptest.tmp.rb:11:in `<main>' + Test_insns.rb FAIL 1/187 + FAIL 1/1197 tests failed + Make: *** [uncommon.mk:666: yes-btest-ruby] Error 1 + +--- a/bootstraptest/test_insns.rb ++++ b/bootstraptest/test_insns.rb +@@ -248,7 +248,7 @@ + end + }/ox + end +- x = once(128); x = once(7); x = once(16); ++ x = once(64); x = once(7); x = once(16); + x =~ "true" && $~ + }, + [ 'once', <<~'},', ], # { |