about summary refs log tree commit diff stats
path: root/tests/test10.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test10.cpp')
-rw-r--r--tests/test10.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test10.cpp b/tests/test10.cpp
index f3c61316..90e1da60 100644
--- a/tests/test10.cpp
+++ b/tests/test10.cpp
@@ -11,6 +11,7 @@ std::stringstream stream;
 void append_number(int x) {
   while (lock_stream[x].load()) {}
   stream << "thread #" << x << '\n';
+  stream.flush();
   if (x != 9) lock_stream[x + 1].store(false);
 }