]> xenbits.xensource.com Git - libvirt.git/commit
qemuxml2argvtest: Test localtime clock basis
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 5 Feb 2014 14:18:46 +0000 (15:18 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Feb 2014 07:22:22 +0000 (08:22 +0100)
commite505db0f6c26196287524eef214dd90f9c016cbb
treedce560e2839c4ec44e717efef36a0cbf42d2fd8f
parent51bea5df5d21093bb30e4883aff19f935e811725
qemuxml2argvtest: Test localtime clock basis

When trying to introduce a test for previous patch, I've
noticed that the command line is constructed using current
time. This won't work in our test suite (unless you guys
wants to set a specific time prior to each test run :) ).
Therefore we need to mock calls to time(2) to return the
same value every time it's called.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/Makefile.am
tests/qemuxml2argvdata/qemuxml2argv-clock-localtime-basis-localtime.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-clock-localtime-basis-localtime.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-clock-variable.args
tests/qemuxml2argvmock.c [new file with mode: 0644]
tests/qemuxml2argvtest.c