Unverified Commit a7e42a20 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4146 from take-cheeze/sup_sleep_warn

Suppress sleep test script warning
parents c7327c84 1b185f08
...@@ -16,7 +16,7 @@ assert("sleep works") do ...@@ -16,7 +16,7 @@ assert("sleep works") do
end end
assert("sleep would not accept negative value") do assert("sleep would not accept negative value") do
e = run_with_catching_error{ sleep -1 } e = run_with_catching_error{ sleep(-1) }
assert_not_equal e, nil assert_not_equal e, nil
assert_equal e.class, ArgumentError assert_equal e.class, ArgumentError
...@@ -29,7 +29,7 @@ assert("usleep works") do ...@@ -29,7 +29,7 @@ assert("usleep works") do
end end
assert("usleep would not accept negative value") do assert("usleep would not accept negative value") do
e = run_with_catching_error{ usleep -100 } e = run_with_catching_error{ usleep(-100) }
assert_not_equal e, nil assert_not_equal e, nil
assert_equal e.class, ArgumentError assert_equal e.class, ArgumentError
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment