From f5d71352cafc0cd5e9aba1483fdc660ea8a04383 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Tue, 26 Jan 2016 09:15:56 +0100 Subject: [PATCH] pcsx2: avoid flushing issue with the test suite Linux only as I don't know if windows suffers of the same issue. --- pcsx2/DebugTools/Debug.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcsx2/DebugTools/Debug.h b/pcsx2/DebugTools/Debug.h index f6f6149aa6..d2cc49805a 100644 --- a/pcsx2/DebugTools/Debug.h +++ b/pcsx2/DebugTools/Debug.h @@ -229,6 +229,12 @@ public: { ConsoleColorScope cs(conColor); Console.WriteRaw( msg ); +#ifdef __linux__ + // Buffered output isn't compatible with the testsuite. The end of test + // doesn't always get flushed. Let's just flush all the output if EE/IOP + // print anything. + fflush(NULL); +#endif return false; }