Flush AND sleep

This commit is contained in:
Martin Hořeňovský 2024-09-15 20:46:24 +02:00
parent e63f3cc817
commit 432695291a
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 5 additions and 0 deletions

View File

@ -308,10 +308,15 @@ TEST_CASE( "X/level/0/b", "[Tricky][fizz]" ){ SUCCEED(""); }
TEST_CASE( "X/level/1/a", "[Tricky]" ) { SUCCEED(""); }
TEST_CASE( "X/level/1/b", "[Tricky]" ) { SUCCEED(""); }
#include <chrono>
#include <thread>
TEST_CASE( "has printf" ) {
// This can cause problems as, currently, stdout itself is not redirected - only the cout (and cerr) buffer
printf( "loose text artifact\n" );
fflush( stdout );
std::this_thread::sleep_for( std::chrono::seconds( 1 ) );
}
namespace {