aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-05-19 14:46:07 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:35:29 +0200
commit9054e7e2fd59e2222258e2dce3a3300c8d16fb05 (patch)
tree75b92878ce5ab77988f84f1047f7ccd700b03173
parentaba1015640643a11bbd98d8483805ca5dd8cbd96 (diff)
Make build script parser unit test compilable
-rw-r--r--libbuild2/build/script/parser.test.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/libbuild2/build/script/parser.test.cxx b/libbuild2/build/script/parser.test.cxx
index 77f6596..705fd9d 100644
--- a/libbuild2/build/script/parser.test.cxx
+++ b/libbuild2/build/script/parser.test.cxx
@@ -125,11 +125,9 @@ namespace build2
// Parse and run.
//
- path_name nm ("buildfile");
-
- script s;
parser p (ctx);
- p.pre_parse (cin, nm, 11 /* line */, s);
+ path_name nm ("buildfile");
+ script s (p.pre_parse (cin, nm, 11 /* line */));
if (!dump)
{