diff options
Diffstat (limited to 'unit-tests/test/script/parser')
-rw-r--r-- | unit-tests/test/script/parser/driver.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx index 20e1e6a..deb9994 100644 --- a/unit-tests/test/script/parser/driver.cxx +++ b/unit-tests/test/script/parser/driver.cxx @@ -164,12 +164,12 @@ namespace build2 // Parse and run. // - script s (tt, st, dir_path (work) /= "test-driver"); - print_runner r (scope, id); - parser p; - p.pre_parse (cin, name, s); - p.parse (name, s, r); + script s ( + p.pre_parse (cin, st, tt, dir_path (work) /= "test-driver")); + + print_runner r (scope, id); + p.parse (s, r); } catch (const failed&) { |