Re: [PATCH 1/4] tests: Split off the mock part of the port allocator test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 11, 2016 at 02:36:28PM +0100, Andrea Bolognani wrote:
> Instead of compiling either the mock or the non-mock part of the
> file based on a compiler flag, split the mock part off to its
> own file.
> ---
>  tests/Makefile.am            |   4 +-
>  tests/virportallocatormock.c | 108 ++++++++++++++++++++++++++++++++++++++++++
>  tests/virportallocatortest.c | 110 +++----------------------------------------
>  3 files changed, 117 insertions(+), 105 deletions(-)
>  create mode 100644 tests/virportallocatormock.c

> @@ -255,12 +168,3 @@ mymain(void)
>  }
>  
>  VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/libvirportallocatormock.so")
> -# endif
> -
> -#else /* ! defined(RTLD_NEXT) */
> -int
> -main(void)
> -{
> -    return EXIT_AM_SKIP;
> -}
> -#endif

I'm afraid removing this will break the test on non-Linux.

ACK if you leave the EXIT_AM_SKIP in.

Jan

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]