aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_stream.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-19 13:11:49 +0200
committerSimon Warta <[email protected]>2015-06-19 13:11:49 +0200
commit6750b13cc04e4a6a2f1aad364f74d0042d1da766 (patch)
treee4f4ee0dfe1787867218c1d8c334a2382318e057 /src/tests/test_stream.cpp
parentb9c03ac33472b00a3eeb8bc00b7f37ef610a4eac (diff)
Replace \n by std::endl in tests to ensure proper flushing
- Remove additional newlines in CHECK_MESSAGE call - Remove redundant output of algo in aead_test() Closes #115
Diffstat (limited to 'src/tests/test_stream.cpp')
-rw-r--r--src/tests/test_stream.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_stream.cpp b/src/tests/test_stream.cpp
index af782d219..6f14c7183 100644
--- a/src/tests/test_stream.cpp
+++ b/src/tests/test_stream.cpp
@@ -32,7 +32,7 @@ size_t stream_test(const std::string& algo,
if(providers.empty())
{
- std::cout << "Unknown stream cipher " << algo << "\n";
+ std::cout << "Unknown stream cipher " << algo << std::endl;
++fails;
}
@@ -42,7 +42,7 @@ size_t stream_test(const std::string& algo,
if(!cipher)
{
- std::cout << "Unable to get " << algo << " from " << provider << "\n";
+ std::cout << "Unable to get " << algo << " from " << provider << std::endl;
++fails;
continue;
}
@@ -58,7 +58,7 @@ size_t stream_test(const std::string& algo,
if(buf != ct)
{
- std::cout << algo << " " << provider << " enc " << hex_encode(buf) << " != " << out_hex << "\n";
+ std::cout << algo << " " << provider << " enc " << hex_encode(buf) << " != " << out_hex << std::endl;
++fails;
}
}