Yukihiro "Matz" Matsumoto
7e18b1dadb
mruby-fiber/fibertest.c: use ptrdiff_t for pointer difference
2025-03-24 22:31:27 +09:00
dearblue
ad4c35b022
Enhanced Fiber Testing
...
The main objective is to make sure that fiber can be handled from C.
Also, add a mechanism to detect that the mruby VM has stopped in the middle of the process.
If it stops halfway, the test will be terminated with `abort()`.
2023-12-04 21:48:23 +09:00
Yukihiro "Matz" Matsumoto
9211bf0950
mruby-fiber/test: Fiber#transfer should not be mixed with Fiber#resume
...
ref #5905
The original tests failed with CRuby.
2023-01-11 18:19:07 +09:00
John Bampton
ea8964ef35
ruby: standardize whitespace
2022-10-31 16:25:56 +10:00
KOBAYASHI Shuji
05056ddac4
Fix missing assertions in mruby-fiber test
2019-05-30 21:42:01 +09:00
take_cheeze
2d25a15b3b
Use assert_* method instead of using result value.
...
Use `do ... end` for test block.
2014-05-24 23:39:53 +09:00
take_cheeze
e854a0e850
make Fiber#transfer compatible with CRuby
2014-03-21 22:10:47 +09:00
take_cheeze
d4d4f1b0d5
implement Fiber#transfer
2014-03-21 22:10:47 +09:00
take_cheeze
de65d4e2a7
make behavior of Fiber without block compatible with CRuby
2014-03-20 04:49:14 +09:00
take_cheeze
daaedf320c
refactor and use assert_raise in fiber test checking exception raise
2014-03-20 04:40:50 +09:00
take_cheeze
272fe3d864
use FiberError in fiber exception raise
2014-03-20 04:38:34 +09:00
take_cheeze
4be7a8b7e8
add root fiber resume test to know double resume checking is working
2014-03-19 01:05:21 +09:00
take_cheeze
19c4bf6fcb
revert MRB_FIBER_RESUMED as MRB_FIBER_RESUMING to fix recurive resume
2014-03-19 01:05:21 +09:00
Yukihiro "Matz" Matsumoto
53a282ac0e
stricter check for double resume; close #1885
2014-03-18 23:47:01 +09:00
Yukihiro "Matz" Matsumoto
b844b96858
add Fiber#== from #1865 patch
2014-03-18 12:42:35 +09:00
take_cheeze
62f05614ee
Add Fiber's double resume test and fix it.
2014-03-15 15:18:06 +09:00
Yukihiro "Matz" Matsumoto
33b81f2ad7
do not specify implementation dependant exception class names in fiber test
2013-06-06 23:54:40 +09:00
Carson McDonald
35b58e571d
Test for raise when yield is called on root fiber
2013-05-28 09:04:53 -04:00
Carson McDonald
406e089a74
Add test for raise on resume after fiber is dead
2013-05-28 09:01:27 -04:00
skandhas
345ba02e4d
add Fiber#alive?
2013-05-27 15:21:56 +08:00
Daniel Bovensiepen
4174690d0b
Add Fiber Test for issue #1264
2013-05-24 23:50:03 +08:00
Yukihiro "Matz" Matsumoto
aa2040fc97
add fiber tests
2013-05-23 15:24:55 +09:00