diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2017-02-08 19:05:27 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2017-02-15 13:48:37 +0000 |
commit | 2aec5c9b3495ecf3c6534dbf47ae09e60b59c146 (patch) | |
tree | 7a8cfa4480050a0c02fc1b1aeb4f357cb4cb9061 /dist | |
parent | 03903ec7836958a1ddddff31960d5a1ef654b094 (diff) |
Package transient zone setting in test to ensure restore on fail
tst_QDateTime::operator_insert_extract() was setting the time-zone and
taking care to restore it at the end of the test; however, if the test
were to fail, the restore would be skipped. Package the zone-setting
and restore in a class instance, so that premature return can't bypass
the restore.
Change-Id: I3df63260da17e481ef4d0d107d9f0fdea3e147e7
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions