From 7e97d8a41f9d7b0fb82742cdd871a18804267c72 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Nov 2016 16:55:57 +0200 Subject: Restructure testscript parser slightly --- unit-tests/test/script/parser/driver.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'unit-tests') 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&) { -- cgit v1.1