mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
qemuxml2argvmock: Mock time() on non-linux platforms too
The qemuxml2argvtest is run on more platforms than linux. For instance FreeBSD. On these platforms we are, however, not mocking time() which results in current time being fetched from system and hence tests number 32 and 33 failing. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ac758012d7
commit
35b7088534
@ -20,9 +20,8 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef __linux__
|
||||
# include "internal.h"
|
||||
# include <time.h>
|
||||
#include "internal.h"
|
||||
#include <time.h>
|
||||
|
||||
time_t time(time_t *t)
|
||||
{
|
||||
@ -31,7 +30,3 @@ time_t time(time_t *t)
|
||||
*t = ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#else
|
||||
/* Nothing to override on non-__linux__ platforms */
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user