summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/dialogs/qfiledialog
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-09-05 18:47:27 +0200
committerLiang Qi <liang.qi@qt.io>2016-09-05 18:47:27 +0200
commitd892e6f721b0163dfb2f2ecf79d80ba62304a542 (patch)
treeccc1de7ece77bca11b20b3335126c337720d5e54 /tests/auto/widgets/dialogs/qfiledialog
parent2997a60e1eaf0efbeb22516ae184fa93f278fec5 (diff)
parent657c2bfbeceda3faa2c7a76b4ccec6a65a3445a2 (diff)
Merge remote-tracking branch 'origin/5.7' into 5.8
Conflicts: mkspecs/features/qt_common.prf src/plugins/platforms/windows/qwindowsdialoghelpers.cpp Change-Id: I03b92b6b89ecc5a8db7c95f04ebb92ed198098a8
Diffstat (limited to 'tests/auto/widgets/dialogs/qfiledialog')
-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();
};