aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-02 16:55:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:37 +0200
commit7e97d8a41f9d7b0fb82742cdd871a18804267c72 (patch)
treefa7a695b348cac0c881d1bbb0c0071fb77f34040 /unit-tests/test/script/parser
parentd7aeb79c65338320a690b404b613f0671a65e403 (diff)
Restructure testscript parser slightly
Diffstat (limited to 'unit-tests/test/script/parser')
-rw-r--r--unit-tests/test/script/parser/driver.cxx10
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&)
{