aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/function.test.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/function.test.cxx')
-rw-r--r--libbuild2/function.test.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbuild2/function.test.cxx b/libbuild2/function.test.cxx
index bd0be62..c4f7fa2 100644
--- a/libbuild2/function.test.cxx
+++ b/libbuild2/function.test.cxx
@@ -42,8 +42,12 @@ namespace build2
//
init_diag (1);
init (nullptr, argv[0]);
- scheduler sched (1); // Serial execution.
- context ctx (sched);
+
+ // Serial execution.
+ //
+ scheduler sched (1);
+ global_mutex_shards shards (1);
+ context ctx (sched, shards);
auto& functions (ctx.functions);