]> xenbits.xensource.com Git - libvirt.git/commit
test_driver: make testDomainGetTime read time from vm-private data
authorIlias Stamatis <stamatis.iliass@gmail.com>
Wed, 7 Aug 2019 10:22:55 +0000 (12:22 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 7 Aug 2019 12:18:16 +0000 (14:18 +0200)
commit79dab9011b00739dbd75a8a4ee63dcf83ead4839
treecf6f755b50694845f7c0c87093795da56cbd2368
parent5801ef06ec29fdbac6718e455015450f7c243c1b
test_driver: make testDomainGetTime read time from vm-private data

Until now, testDomainGetTime would always return the same fixed values
everytime it was called. By using domain-private data we can make this
API return the values previously set with testDomainSetTime, or use the
same old fixed values in case testDomainSetTime hasn't been called at all.

Signed-off-by: Ilias Stamatis <stamatis.iliass@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/test/test_driver.c