From 3a404ea655ef8a174faf250d2f32d5c38abdae37 Mon Sep 17 00:00:00 2001 From: Dale Phurrough Date: Thu, 11 May 2023 21:50:41 +0200 Subject: [PATCH] fix cout buffering in multi_dev_test --- tests/src/multiple_devices_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/multiple_devices_test.cpp b/tests/src/multiple_devices_test.cpp index e13d799e1..0b35009b0 100644 --- a/tests/src/multiple_devices_test.cpp +++ b/tests/src/multiple_devices_test.cpp @@ -90,7 +90,7 @@ TEST_CASE("Multiple devices with 50 messages each") { auto& dev = get<0>(devCounter); auto& counter = get<1>(devCounter); if(dev->getOutputQueue("rgb")->tryGet()) { - cout << "Device " << dev->getMxId() << " message arrived (" << ++counter << "/" << NUM_MESSAGES << ")\n"; + cout << "Device " << dev->getMxId() << " message arrived (" << ++counter << "/" << NUM_MESSAGES << ")" << endl; } if(counter < NUM_MESSAGES) { @@ -265,7 +265,7 @@ TEST_CASE("Device APIs after Device::close()") { // Get color queue and wait for one frame bool ignore{}; if(device->getOutputQueue("color")->get(TEST_TIMEOUT, ignore)) { - cout << "Device " << device->getMxId() << " message arrived\n"; + cout << "Device " << device->getMxId() << " message arrived" << endl; } // Close device