aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/script/lexer.test.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-05-22 15:32:31 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:38:57 +0200
commitb0b048c03930b826ab3dbf88b56fd664fca26886 (patch)
treed6e5e89fb40a31136f6d3e870e59c23f14b70631 /libbuild2/script/lexer.test.cxx
parentb27f36b7af5186ad66fd1afa6e7fdc742f2aa1bd (diff)
Add script command redirect aliases
Diffstat (limited to 'libbuild2/script/lexer.test.cxx')
-rw-r--r--libbuild2/script/lexer.test.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/libbuild2/script/lexer.test.cxx b/libbuild2/script/lexer.test.cxx
index 24fe335..b8de241 100644
--- a/libbuild2/script/lexer.test.cxx
+++ b/libbuild2/script/lexer.test.cxx
@@ -37,7 +37,17 @@ namespace build2
cin.exceptions (istream::failbit | istream::badbit);
path_name in ("<stdin>");
- lexer l (cin, in, m);
+
+ using type = token_type;
+
+ redirect_aliases ra {type (type::in_file),
+ type (type::in_doc),
+ type (type::in_str),
+ type (type::out_file_ovr),
+ type (type::out_file_app),
+ nullopt};
+
+ lexer l (cin, in, m, ra);
// No use printing eos since we will either get it or loop forever.
//