[PATCH] fchosttest: Run the test only under linux

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

 



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
+
     if (virAsprintf(&fchost_prefix, "%s/%s", abs_srcdir,
                     "fchostdata/fc_host/") < 0) {
         ret = -1;
-- 
1.8.1.5

--
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]