aboutsummaryrefslogtreecommitdiff
path: root/tests/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openssl')
-rw-r--r--tests/openssl/driver.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/openssl/driver.cxx b/tests/openssl/driver.cxx
index 769c77e..b0e37ae 100644
--- a/tests/openssl/driver.cxx
+++ b/tests/openssl/driver.cxx
@@ -22,10 +22,9 @@ try
{
openssl os (nullfd, path ("-"), 2, path ("openssl"), "rand", 128);
- vector<char> r
- ((istreambuf_iterator<char> (os.in)), istreambuf_iterator<char> ());
-
+ vector<char> r (os.in.read_binary ());
os.in.close ();
+
return os.wait () && r.size () == 128 ? 0 : 1;
}
catch (const system_error& e)