This test prints thousands of lines of detailed output. The output allows to analyze how ConcurrentQueue is being tested, how it works and why the test fails or crashes (normally it passes). The default maximum number of warnings in Qt Test is 2000, which is too low for this test. Therefore, the following warning is printed before the log output is suppressed: "Maximum amount of warnings exceeded.
| 47 | //! output except for RandomEngineProvider's root seeds, which are necessary to reproduce |
| 48 | //! interesting test results. |
| 49 | QDebug log() |
| 50 | { |
| 51 | return qInfo().noquote() << currentThreadInfo() << '|' |
| 52 | << QTime::currentTime().toString(Qt::ISODateWithMs) << '|'; |
| 53 | } |
| 54 | |
| 55 | using Total = std::atomic<int>; |
| 56 |
no test coverage detected