Skip to content

Commit

Permalink
Tests: Ignore bad windows position warning in tests under macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Holecek <[email protected]>
  • Loading branch information
hluk committed Feb 2, 2020
1 parent abb5045 commit 0b0477b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ bool testStderr(const QByteArray &stderrData, TestInterface::ReadStderrFlag flag
#ifdef Q_OS_MAC
output.remove("QtWarning: Failed to get QCocoaScreen for NSObject(0x0)");
output.remove("ERROR: Failed to open session mutex: QSystemSemaphore::handle:: ftok failed");

static const QRegularExpression reBadPos(R"(QtWarning: Window position.* outside any known screen.*)");
output.remove(reBadPos);
#endif

if ( output.indexOf(reFailure) != -1 )
Expand Down

0 comments on commit 0b0477b

Please sign in to comment.