From 93dbdacafb07b674467aa30c4aefd38bb3871601 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Jan 2017 16:01:58 +0200 Subject: Add scheduling calls to operation's match() --- unit-tests/test/script/parser/driver.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'unit-tests/test') diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx index 1e959c1..f1e7483 100644 --- a/unit-tests/test/script/parser/driver.cxx +++ b/unit-tests/test/script/parser/driver.cxx @@ -142,10 +142,9 @@ namespace build2 { tracer trace ("main"); - init (argv[0], 1); // Fake build system driver, default verbosity. - ulock ml (model); - sched.startup (1); // Serial execution. - reset (ml, strings ()); // No command line variables. + init (argv[0], 1); // Fake build system driver, default verbosity. + sched.startup (1); // Serial execution. + reset (strings ()); // No command line variables. bool scope (false); bool id (false); @@ -183,6 +182,8 @@ namespace build2 // be absolute. However, the testscript implementation doesn't // really care. // + ulock ml (model); + file& tt ( targets.insert (work, dir_path (), @@ -204,6 +205,8 @@ namespace build2 name.leaf ().extension (), trace)); + ml.unlock (); + tt.path (path ("driver")); st.path (name); -- cgit v1.1