From 4093cfa0d69bce341c7c4c634dc7b297ac345101 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Wed, 21 Sep 2016 13:49:19 +0200 Subject: [PATCH] context: Inherit criterion_options in the test sandbox. Fixes #164. --- src/core/runner_coroutine.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/runner_coroutine.c b/src/core/runner_coroutine.c index 59f6570..66abe89 100644 --- a/src/core/runner_coroutine.c +++ b/src/core/runner_coroutine.c @@ -287,6 +287,10 @@ static bxf_instance *run_test(struct run_next_context *ctx, param, ctx->params.size); } + if (!rc) + rc = bxf_context_addstatic(inst_ctx, &criterion_options, + sizeof (criterion_options)); + if (!rc) rc = bxf_context_addarena(inst_ctx, cri_alloc_getarena());