mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user