diff options
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c index 31ba0a75b..f3d8191d8 100644 --- a/src/test.c +++ b/src/test.c @@ -47,7 +47,7 @@ static virDriver testDriver = { NULL, /* domainGetName */ NULL, /* domainGetID */ NULL, /* domainGetUUID */ - NULL, /* domainGetOSType */ + testGetOSType, /* domainGetOSType */ testGetMaxMemory, /* domainGetMaxMemory */ testSetMaxMemory, /* domainSetMaxMemory */ testSetMemory, /* domainSetMemory */ @@ -989,6 +989,10 @@ int testGetDomainInfo (virDomainPtr domain, return (0); } +char *testGetOSType(virDomainPtr dom ATTRIBUTE_UNUSED) { + return strdup("linux"); +} + unsigned long testGetMaxMemory(virDomainPtr domain) { testCon *con; if ((domain == NULL) || (domain->conn == NULL) || (domain->name == NULL)) { |