mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +00:00
tests: storage: Remove unused test modes
EXP_WARN and ALLOW_PROBE flags for the testStorageChain cases are no longer used so we can remove them. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
7e582fe995
commit
a649369480
@ -242,8 +242,6 @@ struct _testFileData
|
||||
enum {
|
||||
EXP_PASS = 0,
|
||||
EXP_FAIL = 1,
|
||||
EXP_WARN = 2,
|
||||
ALLOW_PROBE = 4,
|
||||
};
|
||||
|
||||
struct testChainData
|
||||
@ -288,25 +286,15 @@ testStorageChain(const void *args)
|
||||
fprintf(stderr, "call should have failed\n");
|
||||
return -1;
|
||||
}
|
||||
if (data->flags & EXP_WARN) {
|
||||
if (virGetLastErrorCode() == VIR_ERR_OK) {
|
||||
fprintf(stderr, "call should have warned\n");
|
||||
return -1;
|
||||
}
|
||||
virResetLastError();
|
||||
if (virStorageFileChainGetBroken(meta, &broken) || !broken) {
|
||||
fprintf(stderr, "call should identify broken part of chain\n");
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
if (virGetLastErrorCode()) {
|
||||
fprintf(stderr, "call should not have warned\n");
|
||||
return -1;
|
||||
}
|
||||
if (virStorageFileChainGetBroken(meta, &broken) || broken) {
|
||||
fprintf(stderr, "chain should not be identified as broken\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (virGetLastErrorCode()) {
|
||||
fprintf(stderr, "call should not have reported error\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (virStorageFileChainGetBroken(meta, &broken) || broken) {
|
||||
fprintf(stderr, "chain should not be identified as broken\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
elt = meta;
|
||||
|
Loading…
x
Reference in New Issue
Block a user