Skip to content

Commit

Permalink
Fixed skip messages for non-forking systems. (casperisfine)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 13885]
  • Loading branch information
zenspider committed Jul 27, 2023
1 parent 96a9972 commit ed88d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/minitest/test_minitest_test.rb
Expand Up @@ -1089,14 +1089,14 @@ def shitty_test_case.test_order; :lol end

def test_autorun_does_not_affect_fork_success_status
@assertion_count = 0
skip "windows doesn't have skip" unless Process.respond_to?(:fork)
skip "windows doesn't have fork" unless Process.respond_to?(:fork)
Process.waitpid(fork {})
assert_equal true, $?.success?
end

def test_autorun_does_not_affect_fork_exit_status
@assertion_count = 0
skip "windows doesn't have skip" unless Process.respond_to?(:fork)
skip "windows doesn't have fork" unless Process.respond_to?(:fork)
Process.waitpid(fork { exit 42 })
assert_equal 42, $?.exitstatus
end
Expand Down

0 comments on commit ed88d19

Please sign in to comment.