qt5base-lts/tests/auto
Edward Welbourne 6c543879a3 Avoid races on TZ in environment via tzset() calls
POSIX specifies that tzset() consults environment variable TZ and
modifies some globals; it also specifies mktime(), localtime() and
strftime() to behave as if they called tzset().  Fortunately, we only
call strftime() from a test and only call localtime() when not
threaded.  Provide wrappers for tzset() and mktime() that share the
lock used by our environment-access code, to prevent races on the
environment (and tzset()'s globals) when we call them.

In the process, re-use tst_QDateTime's TimeZoneRollback in its older
test systemTimeZoneChange() and presume that this can now be tested
cross-platform, since TimeZoneRollback is used in another test where
this works.

Fixes: QTBUG-71030
Change-Id: I79f559b8857ea2803e73501008bf0d7158c6731f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2018-10-22 10:07:01 +00:00
..
android Updated license headers 2016-01-21 18:55:18 +00:00
bic/data Add binary compatibility files for 5.11 for QtBase 2018-06-05 06:00:28 +00:00
cmake Export modules' enabled/disabled features to cmake 2018-09-28 13:10:28 +00:00
concurrent Merge remote-tracking branch 'origin/5.11' into dev 2018-02-16 08:54:58 +01:00
corelib Avoid races on TZ in environment via tzset() calls 2018-10-22 10:07:01 +00:00
dbus Fix wrong relative path to qdbus_symbols.cpp 2018-07-24 04:24:31 +00:00
gui Qt Style Sheets: fix range of hue in hsl/hsv functions 2018-10-18 06:36:28 +00:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake
network tst_QSslSocket: deduplicate datatags and don't cast to int 2018-10-16 10:45:41 +00:00
opengl Extend tst_QGL::graphicsViewClipping blacklisting 2018-10-03 13:04:13 +00:00
other Extend opensuse blacklistings to opensuse-leap 2018-09-11 12:11:45 +00:00
printsupport Merge remote-tracking branch 'origin/5.11' into dev 2018-05-03 14:50:22 +02:00
shared Remove workaround for potentially unavailable pasteboard in macOS 2017-03-07 01:04:46 +00:00
sql SQLite: enable json1 extension 2018-10-03 19:36:26 +00:00
testlib Merge remote-tracking branch 'origin/5.11' into dev 2018-07-02 11:23:45 +02:00
tools Merge remote-tracking branch 'origin/5.12' into dev 2018-10-08 10:56:25 +02:00
widgets Remove skip from tst_QWidget::updateWhileMinimized 2018-10-19 08:11:11 +00:00
xml Don't indefinitely wait for data if it was able to read some data 2018-01-24 05:54:31 +00:00
auto.pro winrt: Skip network auto tests for now 2018-06-22 05:02:39 +00:00
network-settings.h Docker-based test servers for network-related Qt autotests on macOS 2018-10-18 19:22:46 +00:00
testserver.pri Docker-based test servers for network-related Qt autotests on macOS 2018-10-18 19:22:46 +00:00