Skip to content

Commit eaa72f3

Browse files
committed
Try again with single test
1 parent 66c5529 commit eaa72f3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: .github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
- name: Compile C-extension
3333
run: bundle exec rake compile
3434
- 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

Diff for: ext/um/um.c

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ inline void um_process_cqe(struct um *machine, struct io_uring_cqe *cqe) {
114114
struct um_op *op = (struct um_op *)cqe->user_data;
115115
if (unlikely(!op)) return;
116116

117+
printf("process_cqe op: %p result: %d\n", op, cqe->res);
117118
switch (op->state) {
118119
case OP_submitted:
119120
if (unlikely(cqe->res == -ECANCELED)) {
@@ -285,6 +286,7 @@ struct op_ensure_ctx {
285286
VALUE um_timeout_ensure(VALUE arg) {
286287
struct op_ensure_ctx *ctx = (struct op_ensure_ctx *)arg;
287288

289+
printf("timeout_ensure op: %p state: %d\n", ctx->op, ctx->op->state);
288290
if (ctx->op->state == OP_submitted) {
289291
// A CQE has not yet been received, we cancel the timeout and abandon the op
290292
// (it will be checked in upon receiving the -ECANCELED CQE)

0 commit comments

Comments
 (0)