[libvirt] [PATCH v2] qemuxml2argvtest: Set timezone
Ján Tomko
jtomko at redhat.com
Thu Feb 6 15:03:26 UTC 2014
On 02/06/2014 03:11 PM, Michal Privoznik wrote:
> With my recent work on the test, both time() and localtime() are used.
> While mocking the former one, we get predictable result for UTC. But
> since the latter function uses timezone to get local time, the result of
> localtime() is not so predictive. Therefore, we must set the TZ variable
> at the beginning of the test. To be able to catch some things that work
> just by a blind chance, I'm choosing a virtual timezone that (hopefully)
> no libvirt developer resides in.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> .../qemuxml2argv-clock-localtime-basis-localtime.args | 2 +-
> tests/qemuxml2argvtest.c | 10 ++++++++++
> 2 files changed, 11 insertions(+), 1 deletion(-)
ACK, please push.
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140206/acdffac8/attachment-0001.sig>
More information about the libvir-list
mailing list