qt5base-lts/tests/auto/corelib
Tor Arne Vestbø 76f53791a1 tst_QSettings: Don't assume the presence of a key means isWritable
The previous sync() of the specific scope and domain may have failed due
to not having the necessary permissions, but the saved value may still be
cached, so we need to check both.

This was observed on macOS Sierra, where a failed sync() will result in
marking the CFPrefsPlistSource as read-only, eg:

  2016-10-04 13:14:11.713271 tst_qsettings[88537:767733] [User Defaults] attempt to set
  <private> for key in <private> in read-only (due to a previous failed write) preferences
  domain CFPrefsPlistSource<0x6180000e1780> (Domain: org.software.KillerAPP,
  User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null))

Change-Id: I8976c1c4acfe2cb0d5510298d5c585faca9607f6
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2016-10-10 16:06:43 +00:00
..
animation QtCore: Remove Windows CE. 2016-03-30 11:22:47 +00:00
codecs tests/auto/corelib/codecs: clean up 2016-08-06 14:49:21 +00:00
global Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
io tst_QSettings: Don't assume the presence of a key means isWritable 2016-10-10 16:06:43 +00:00
itemmodels Merge remote-tracking branch 'origin/5.7' into dev 2016-08-16 07:58:32 +02:00
json Modularize configure.json/.pri 2016-09-15 08:23:53 +00:00
kernel Use extreme values in QMetaType/QSettings test data 2016-10-05 20:31:23 +00:00
mimetypes tests/auto/corelib/mimetypes: use local QThreadPool 2016-09-17 06:47:05 +00:00
plugin Convert the old feature system 2016-09-15 08:24:10 +00:00
statemachine Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
thread winrt: Make test functional 2016-08-09 12:13:23 +00:00
tools Round to nearest millisecond in QDateTime::fromCFDate() 2016-10-02 13:07:18 +00:00
xml tests/auto/corelib/xml: cleanup 2016-08-27 05:09:16 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00