]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2argvtest: Set timezone
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Feb 2014 13:24:02 +0000 (14:24 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Feb 2014 14:15:10 +0000 (15:15 +0100)
commitc5d09fbdd1649fe2430bf92c75e9dc4f9289e02f
tree10f7bfc1432cb18b76082c49ec110541d3ab7dc0
parent35b7088534da51583bd130218d0ce3fed7326fa5
qemuxml2argvtest: Set timezone

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.
tests/qemuxml2argvdata/qemuxml2argv-clock-localtime-basis-localtime.args
tests/qemuxml2argvtest.c