Summary: | ItemViewsPuzzleTest test hangs | ||
---|---|---|---|
Product: | [Unmaintained] bindings | Reporter: | Petr Pisar <ppisar> |
Component: | general | Assignee: | kde-bindings |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chrisburel |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Petr Pisar
2016-03-23 12:12:55 UTC
Fixed in 8f066267. The problem is that the itemviews/puzzle example uses the QMessageBox::information() function, which runs its own event loop in its own thread. The testing framework has no way to detect that this thread has started, so user interaction is required for the test to complete. My solution is to just monkey patch QMessageBox::information during the test, so that we ensure that it is called when the puzzle is complete, but no additional event loops are created. http://commits.kde.org/perlqt/8f066267118c66e01d45b60ba086510d577fa854 |