1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/fiber
nagachika 6a8c166498 merge revision(s) 5c7af72304d0ad33cd3f21b24a4bc44e8acd5b2c,d650b17686d49c2ce8e6a87039861154e93d4621: [Backport #18497]
Assuming EXIT_SUCCESS equals 0 is not portable

	---
	 test/ruby/test_fiber.rb | 6 +++---
	 1 file changed, 3 insertions(+), 3 deletions(-)

	`rb_fiber_terminate` must not return [Bug #18497]

	In a forked process from a fiber, the fiber becomes the only
	fiber, `fiber_switch` does nothing as there is no other fibers,
	`rb_fiber_terminate` does not terminate the fiber.  In that case,
	reaches the end of `fiber_entry` finaly, which is declared as
	"COROUTINE" and should never return.
	---
	 cont.c                     |  3 ++-
	 eval_intern.h              |  2 +-
	 test/fiber/test_process.rb | 15 +++++++++++++++
	 test/ruby/test_fiber.rb    |  5 +++++
	 4 files changed, 23 insertions(+), 2 deletions(-)
2022-03-13 11:47:39 +09:00
..
http.rb Rename to Fiber#set_scheduler. 2020-11-07 23:39:50 +13:00
scheduler.rb Fix potential hang when joining threads. 2021-09-26 20:49:54 +09:00
test_backtrace.rb test/fiber/test_backtrace.rb: prevent a warning 2020-08-18 14:36:39 +09:00
test_enumerator.rb Rename to Fiber#set_scheduler. 2020-11-07 23:39:50 +13:00
test_io.rb merge revision(s) 611e711085c7e3984555a79626d025c8b876eced,a9c5c2d614f30a616970245fef3e7ffc151e2ecf: [Backport #17527] 2021-04-24 14:04:04 +09:00
test_mutex.rb Fix TestFiberMutex#test_condition_variable assertion 2020-11-08 16:49:33 +01:00
test_process.rb merge revision(s) 5c7af72304d0ad33cd3f21b24a4bc44e8acd5b2c,d650b17686d49c2ce8e6a87039861154e93d4621: [Backport #18497] 2022-03-13 11:47:39 +09:00
test_ractor.rb Add verbose nil in testing 2020-12-23 03:27:14 +09:00
test_scheduler.rb Wake up join list within thread EC context. (#4471) 2021-09-26 20:49:54 +09:00
test_sleep.rb Close leaked file descriptors 2021-09-26 20:49:54 +09:00
test_thread.rb Fix potential hang when joining threads. 2021-09-26 20:49:54 +09:00