aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/parser.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-10-27 12:25:33 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:36 +0200
commit2b8601ca72b7b3cbb3b76d96102e9607efab16b7 (patch)
tree129e013ff1162a788f265dea3dd28fd794a8a94b /build2/test/script/parser.cxx
parentedd5e517be41effbe760f4e5b5743a431c8344e6 (diff)
Fix test command merge redirect parsing and testing
Diffstat (limited to 'build2/test/script/parser.cxx')
-rw-r--r--build2/test/script/parser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx
index ac042c5..a3f2f00 100644
--- a/build2/test/script/parser.cxx
+++ b/build2/test/script/parser.cxx
@@ -609,7 +609,7 @@ namespace build2
try
{
size_t n;
- if (stoi (w, &n) == fd || n == w.size ())
+ if (stoi (w, &n) == fd && n == w.size ())
{
r.fd = fd;
return;