Stabilize tst_qfiledialog.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Wed, 23 Apr 2014 13:40:26 +0000 (15:40 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 25 Apr 2014 04:58:27 +0000 (06:58 +0200)
commitd8cd99992f1f09aa1ce51fb7611983b9d47c7d8b
treeb73ab0f8d742565ec0192493c58fd8ce0d349586
parentd7dd22bb29eb263b5dbcf52542a0bbc67da02316
Stabilize tst_qfiledialog.

selectFile(): Ensure dialog is destroyed before the temporary file
to prevent leak.

selectFiles(): Introduce scopes to prevent co-existence of 2
instances of QFileDialog, which causes warnings from file watchers
and occasional crashes in accessibility.

Discovered while investigating:

Task-number: QTBUG-38414
Change-Id: I94d2bb3e05538416286641cb08a88d8b3837a8a6
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp