Skip to content

Commit

Permalink
add a thread test with waitpid on btest
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Apr 26, 2023
1 parent 299d17a commit 0b9e59f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bootstraptest/test_thread.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,16 @@
end
}

assert_equal 'true', %{
Thread.new{}.join
Process.waitpid2 fork{
Thread.new{
sleep 0.1
}.join
}
true
}

assert_equal 'ok', %{
open("zzz_t1.rb", "w") do |f|
f.puts <<-END
Expand Down

0 comments on commit 0b9e59f

Please sign in to comment.