-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tst_QLocale: fix restoration of default locale after tests change it
Use qScopeGuard() to ensure we always restore cleanly. Some of them didn't even need to set default locale, and one only needed a minor tweak to save the need for it. Remove tst_QLocale's red-flag comments about its tests that exercise setDefault(), since they should now be harmless and not care about their order relative to other tests. Change-Id: I552218989c66c4e7b238b3a949a6aeae3a7c2825 Reviewed-by: Tor Arne Vestbø <[email protected]>
- Loading branch information
1 parent
a3caffc
commit 9f4a99e
Showing
1 changed file
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters