summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-06-19 14:10:40 (GMT)
committerYusuke Endoh <mame@ruby-lang.org>2019-06-19 14:10:40 (GMT)
commit65944e96d39a8ae3602751f49cb337335b2c6c45 (patch)
tree4431f5cd1ed96fbbf04d3c928240de663fc3ac6b
parent2abe548f356756788db7f893b221938a5f775ccd (diff)
test/racc/test_racc_command.rb: Extend the timeoutHEADtrunkmaster
test_opal, test_ruby18, and test_ruby22 are slow tests. https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-ad7f67/ruby-master/log/20190619T105405Z.fail.html.gz
-rw-r--r--test/racc/helper.rb12
-rw-r--r--test/racc/test_racc_command.rb6
2 files changed, 9 insertions, 9 deletions
diff --git a/test/racc/helper.rb b/test/racc/helper.rb
index 035c76a..7dce020 100644
--- a/test/racc/helper.rb
+++ b/test/racc/helper.rb
@@ -42,7 +42,7 @@ module Racc
end
end
- def assert_compile(asset, args = [])
+ def assert_compile(asset, args = [], **opt)
file = File.basename(asset, '.y')
args = ([args].flatten) + [
"#{ASSET_DIR}/#{file}.y",
@@ -50,7 +50,7 @@ module Racc
"-O#{OUT_DIR}/#{file}",
"-o#{TAB_DIR}/#{file}",
]
- racc *args
+ racc *args, **opt
end
def assert_debugfile(asset, ok)
@@ -91,12 +91,12 @@ module Racc
"expectation. Try compiling it and diff with test/regress/#{file}.")
end
- def racc(*arg)
- ruby "-S", RACC, *arg
+ def racc(*arg, **opt)
+ ruby "-S", RACC, *arg, **opt
end
- def ruby(*arg)
- assert_ruby_status(["-C", TEMP_DIR, *arg])
+ def ruby(*arg, **opt)
+ assert_ruby_status(["-C", TEMP_DIR, *arg], **opt)
end
end
end
diff --git a/test/racc/test_racc_command.rb b/test/racc/test_racc_command.rb
index 2291538..fcbe847 100644
--- a/test/racc/test_racc_command.rb
+++ b/test/racc/test_racc_command.rb
@@ -164,13 +164,13 @@ module Racc
# .y files from `parser` gem
def test_ruby18
- assert_compile 'ruby18.y'
+ assert_compile 'ruby18.y', [], timeout: 60
assert_debugfile 'ruby18.y', []
# assert_output_unchanged 'ruby18.y'
end
def test_ruby22
- assert_compile 'ruby22.y'
+ assert_compile 'ruby22.y', [], timeout: 60
assert_debugfile 'ruby22.y', []
# assert_output_unchanged 'ruby22.y'
end
@@ -186,7 +186,7 @@ module Racc
# .y file from opal gem
def test_opal
- assert_compile 'opal.y'
+ assert_compile 'opal.y', [], timeout: 60
assert_debugfile 'opal.y', []
# assert_output_unchanged 'opal.y'
end