File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 32
32
- name : Compile C-extension
33
33
run : bundle exec rake compile
34
34
- name : Run tests
35
- run : bundle exec ruby test/test_um.rb --verbose 1>&2
35
+ run : bundle exec ruby test/test_um.rb --name test_timeout_with_raising_block
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ inline void um_process_cqe(struct um *machine, struct io_uring_cqe *cqe) {
114
114
struct um_op * op = (struct um_op * )cqe -> user_data ;
115
115
if (unlikely (!op )) return ;
116
116
117
+ printf ("process_cqe op: %p result: %d\n" , op , cqe -> res );
117
118
switch (op -> state ) {
118
119
case OP_submitted :
119
120
if (unlikely (cqe -> res == - ECANCELED )) {
@@ -285,6 +286,7 @@ struct op_ensure_ctx {
285
286
VALUE um_timeout_ensure (VALUE arg ) {
286
287
struct op_ensure_ctx * ctx = (struct op_ensure_ctx * )arg ;
287
288
289
+ printf ("timeout_ensure op: %p state: %d\n" , ctx -> op , ctx -> op -> state );
288
290
if (ctx -> op -> state == OP_submitted ) {
289
291
// A CQE has not yet been received, we cancel the timeout and abandon the op
290
292
// (it will be checked in upon receiving the -ECANCELED CQE)
You can’t perform that action at this time.
0 commit comments