mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix virsystemdtest for previous commit
The change to query org.freedesktop.DBus.ListActivatableNames to detect systemd broke the test suite, since we did not have stubs to respond to this dbus call. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@@ -94,9 +94,11 @@ static int testCreateNoSystemd(const void *opaque ATTRIBUTE_UNUSED)
|
||||
123,
|
||||
false,
|
||||
NULL)) == 0) {
|
||||
unsetenv("FAIL_NO_SERVICE");
|
||||
fprintf(stderr, "%s", "Unexpected create machine success\n");
|
||||
return -1;
|
||||
}
|
||||
unsetenv("FAIL_NO_SERVICE");
|
||||
|
||||
if (rv != -2) {
|
||||
fprintf(stderr, "%s", "Unexpected create machine error\n");
|
||||
@@ -126,9 +128,11 @@ static int testCreateBadSystemd(const void *opaque ATTRIBUTE_UNUSED)
|
||||
123,
|
||||
false,
|
||||
NULL)) == 0) {
|
||||
unsetenv("FAIL_BAD_SERVICE");
|
||||
fprintf(stderr, "%s", "Unexpected create machine success\n");
|
||||
return -1;
|
||||
}
|
||||
unsetenv("FAIL_BAD_SERVICE");
|
||||
|
||||
if (rv != -1) {
|
||||
fprintf(stderr, "%s", "Unexpected create machine error\n");
|
||||
|
||||
Reference in New Issue
Block a user