diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 420e08171b..7c3ddd7944 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -1501,6 +1501,26 @@ static char *testConnectGetCapabilities(virConnectPtr conn) return xml; } +static char * +testConnectGetSysinfo(virConnectPtr conn ATTRIBUTE_UNUSED, + unsigned int flags) +{ + char *ret; + const char *sysinfo = "\n" + " \n" + " LENOVO\n" + " G4ETA1WW (2.61 )\n" + " 05/07/2014\n" + " 2.61\n" + " \n" + "\n"; + + virCheckFlags(0, NULL); + + ignore_value(VIR_STRDUP(ret, sysinfo)); + return ret; +} + static int testConnectNumOfDomains(virConnectPtr conn) { testDriverPtr privconn = conn->privateData; @@ -6675,6 +6695,7 @@ static virHypervisorDriver testHypervisorDriver = { .connectGetMaxVcpus = testConnectGetMaxVcpus, /* 0.3.2 */ .nodeGetInfo = testNodeGetInfo, /* 0.1.1 */ .connectGetCapabilities = testConnectGetCapabilities, /* 0.2.1 */ + .connectGetSysinfo = testConnectGetSysinfo, /* 2.3.0 */ .connectListDomains = testConnectListDomains, /* 0.1.1 */ .connectNumOfDomains = testConnectNumOfDomains, /* 0.1.1 */ .connectListAllDomains = testConnectListAllDomains, /* 0.9.13 */