Skip to content

Commit

Permalink
Skip the tray restore/hide test of keepassxreboot#1595 if there's no …
Browse files Browse the repository at this point in the history
…tray (fix CI build).
  • Loading branch information
joanbm authored and TheZ3ro committed Mar 12, 2018
1 parent 8646586 commit f305517
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/gui/TestGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1095,8 +1095,11 @@ void TestGui::testDragAndDropKdbxFiles()

void TestGui::testTrayRestoreHide()
{
QSystemTrayIcon *trayIcon = m_mainWindow->findChild<QSystemTrayIcon*>();
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
QSKIP("QSystemTrayIcon::isSystemTrayAvailable() = false, skipping tray restore/hide test...");
}

QSystemTrayIcon* trayIcon = m_mainWindow->findChild<QSystemTrayIcon*>();
QVERIFY(m_mainWindow->isVisible());

trayIcon->activated(QSystemTrayIcon::Trigger);
Expand Down

0 comments on commit f305517

Please sign in to comment.