mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-07 09:19:19 +00:00
tests: skip qemublocktest if building without YAJL
If no JSON parser is available qemublocktest fails, so skip its execution. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
7469aa0bc2
commit
dfd282f620
@ -19,6 +19,8 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "testutils.h"
|
||||
|
||||
#if WITH_YAJL
|
||||
# include "testutilsqemu.h"
|
||||
# include "testutilsqemuschema.h"
|
||||
# include "virstoragefile.h"
|
||||
@ -500,4 +502,12 @@ mymain(void)
|
||||
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
|
||||
#else
|
||||
static int
|
||||
mymain(void)
|
||||
{
|
||||
return EXIT_AM_SKIP;
|
||||
}
|
||||
#endif
|
||||
|
||||
VIR_TEST_MAIN(mymain)
|
||||
|
Loading…
Reference in New Issue
Block a user