diff options
Diffstat (limited to 'libbuild2/function.test.cxx')
-rw-r--r-- | libbuild2/function.test.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libbuild2/function.test.cxx b/libbuild2/function.test.cxx index 2380987..670114e 100644 --- a/libbuild2/function.test.cxx +++ b/libbuild2/function.test.cxx @@ -41,7 +41,8 @@ namespace build2 // init_diag (1); init (nullptr, argv[0]); - reset (strings ()); // No command line variables. + sched.startup (1); // Serial execution. + context ctx (sched); function_family f ("dummy"); @@ -114,9 +115,9 @@ namespace build2 try { - scope& s (*scope::global_); + scope& s (ctx.global_scope.rw ()); - parser p; + parser p (ctx); p.parse_buildfile (cin, path ("buildfile"), s, s); } catch (const failed&) |