]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Skip nodeinfo test on non intel architectures
authorGuido Günther <agx@sigxcpu.org>
Sun, 12 Jun 2011 19:57:01 +0000 (21:57 +0200)
committerGuido Günther <agx@sigxcpu.org>
Tue, 14 Jun 2011 20:32:51 +0000 (22:32 +0200)
since the testfiles assume a /proc/cpuinfo specific to this
architecture. We e.g. can't parse the number of cores on other
architectures.

tests/nodeinfotest.c

index b4e81b384b28919a542e420e5f85b3d0cae03432..71e2926df8d5c66457c4e226a6da62732cadeabf 100644 (file)
@@ -11,7 +11,9 @@
 #include "util.h"
 #include "files.h"
 
-#ifndef __linux__
+#if ! (defined __linux__  &&  (defined(__x86_64__) || \
+                               defined(__amd64__)  || \
+                               defined(__i386__)))
 
 static int
 mymain(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED)