summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp')
-rw-r--r--tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
index 844f21cfe1..e13e0201bc 100644
--- a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
+++ b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
@@ -132,7 +132,6 @@ private slots:
void saveButtonText();
void clearLineEdit();
void enableChooseButton();
- void widgetlessNativeDialog();
void selectedFilesWithoutWidgets();
void trailingDotsAndSpaces();
#ifdef Q_OS_UNIX
@@ -144,6 +143,20 @@ private slots:
void rejectModalDialogs();
void QTBUG49600_nativeIconProviderCrash();
+ // NOTE: Please keep widgetlessNativeDialog() as the LAST test!
+ //
+ // widgetlessNativeDialog() is the only test function that creates
+ // a native file dialog instance. GTK+ versions prior 3.15.5 have
+ // a nasty bug (https://bugzilla.gnome.org/show_bug.cgi?id=725164)
+ // in GtkFileChooserWidget, which makes it leak its folder change
+ // callback, causing a crash "at some point later". Running the
+ // native test last is enough to avoid spinning the event loop after
+ // the test, and that way circumvent the crash.
+ //
+ // The crash has been fixed in GTK+ 3.15.5, but the RHEL 7.2 CI has
+ // GTK+ 3.14.13 installed (QTBUG-55276).
+ void widgetlessNativeDialog();
+
private:
void cleanupSettingsFile();
};