Skip to content

Commit

Permalink
deactivate event filter for autotests as it fails with qt6.6.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Mar 16, 2024
1 parent f30254b commit 115d365
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tests/testmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,19 @@ QString TestManager::execute(TestLevel level, LatexEditorView* edView, QCodeEdit
bool allPassed=true;
if (level!=TL_ALL)
tr="There are skipped tests. Please rerun with --execute-all-tests\n\n";
QCoreApplication *app = QCoreApplication::instance();
/* Deactivate filter as it does not work with Qt6.6.2+
* Original PR: #1055
QCoreApplication *app = QCoreApplication::instance();
TestmanagerEventFilter eventFilter;
app->installNativeEventFilter(&eventFilter);
app->installNativeEventFilter(&eventFilter);*/
for (int i=0; i <tests.size();i++){
emit newMessage(tests[i]->metaObject()->className());
qDebug()<<tests[i]->metaObject()->className();
QString res=performTest(tests[i]);
tr+=res;
if (!res.contains(", 0 failed, 0 skipped")) allPassed=false;
}
app->removeNativeEventFilter(&eventFilter);
//app->removeNativeEventFilter(&eventFilter);

tr+=QString("\nTotal testing time: %1 ms\n").arg(totalTestTime);

Expand Down

0 comments on commit 115d365

Please sign in to comment.