aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/test/script
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-22 10:02:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-22 10:17:41 +0200
commitb47a323f09f1f9ccece03ca4d84dbe7a47ff8177 (patch)
tree7c520e5878b1988425520424c5e372f7439636d9 /libbuild2/test/script
parent1bbd6bdb1bbf6783aefd10392e5c0599318a927f (diff)
Move global mutex shards to context
Diffstat (limited to 'libbuild2/test/script')
-rw-r--r--libbuild2/test/script/parser.test.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbuild2/test/script/parser.test.cxx b/libbuild2/test/script/parser.test.cxx
index 56630fe..2eec791 100644
--- a/libbuild2/test/script/parser.test.cxx
+++ b/libbuild2/test/script/parser.test.cxx
@@ -155,8 +155,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);
bool scope (false);
bool id (false);