On 09/27/2013 08:51 AM, Michal Privoznik wrote: > Currently, we have functions to handle fc_host implemented just > for linux. On all other platforms an error is thrown. It makes no > sense to run the test on those platforms then. > > Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> > --- > tests/fchosttest.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/tests/fchosttest.c b/tests/fchosttest.c > index 05ff20b..46bd784 100644 > --- a/tests/fchosttest.c > +++ b/tests/fchosttest.c > @@ -163,6 +163,11 @@ mymain(void) > { > int ret = 0; > > +#ifndef __linux__ > + fputs("Not compiled under linux, skipping this test\n", stderr); > + return EXIT_AM_SKIP; > +#endif For other Linux-specific tests, we have stubbed out the entire file, rather than just a line in main() (for example, virsystemdtest.c). But this approach works too. ACK, worth having in 1.1.3. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list