aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/script.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-24 15:35:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:35 +0200
commit5bfa47e072eb0592a4df15dbf68ce3ea76383905 (patch)
tree515c6e028236a8d631f4701c5758445f054731c0 /build2/test/script/script.cxx
parentb0bed0e1205f44ae73850fac521f9162f29adef5 (diff)
Minor testscript changes
Diffstat (limited to 'build2/test/script/script.cxx')
-rw-r--r--build2/test/script/script.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/build2/test/script/script.cxx b/build2/test/script/script.cxx
index 95e6344..da9c83a 100644
--- a/build2/test/script/script.cxx
+++ b/build2/test/script/script.cxx
@@ -37,10 +37,15 @@ namespace build2
size_t n (string::traits_type::length (prefix));
assert (n > 0);
+ //@@ TODO: we don't handle 'exact' (<: <<: etc). Could check for
+ // lack of newline at the end of value. In fact, won't we write
+ // here-end on the same line if <<:. Also will write newline at
+ // the end of here-string in case of <.
+ //
switch (r.type)
{
case redirect_type::none: assert (false); break;
- case redirect_type::std: o << '+'; break;
+ case redirect_type::pass: o << '+'; break;
case redirect_type::null: o << '-'; break;
case redirect_type::here_string: to_stream_q (o, r.value); break;
case redirect_type::here_document: