diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-12 17:30:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-12 17:30:53 +0200 |
commit | 02de5923e7e26da9584f018e97023eb6ca619360 (patch) | |
tree | 173c3050487090f3bd84460898bf3423479ba7e2 /libbuild2/test/script | |
parent | b90df69f990d7324736272cfe216ff058a5208f6 (diff) |
Use new fdstream constructor
Diffstat (limited to 'libbuild2/test/script')
-rw-r--r-- | libbuild2/test/script/runner.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/test/script/runner.cxx b/libbuild2/test/script/runner.cxx index a1eb9ec..f0c089b 100644 --- a/libbuild2/test/script/runner.cxx +++ b/libbuild2/test/script/runner.cxx @@ -85,7 +85,7 @@ namespace build2 { try { - ifdstream is (p, ifdstream::in, ifdstream::badbit); + ifdstream is (p, ifdstream::badbit); if (is.peek () != ifdstream::traits_type::eof ()) { @@ -628,7 +628,7 @@ namespace build2 // Also note that we strip the trailing CR characters (otherwise // can mismatch when cross-test). // - ifdstream is (op, ifdstream::in, ifdstream::badbit); + ifdstream is (op, ifdstream::badbit); is.peek (); // Sets eofbit for an empty stream. while (!is.eof ()) |