Skip to contentSkip to conversation

tests: fix CPUID detection tests compilation failure

PATCH In review Wei Liu 2 participants 2 messages Jun 13, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 tests: fix CPUID detection tests compilation failure

In 3704b9003 ("tests: Add CPU detection tests"), a macro called DO_TEST_CPUID_JSON is added. But it took only two arguments when QEMU or YAJL is not set.

Fix it by adding a third argument. Shouldn't have any effect because that macro compiles to nothing.

---
Cc: Jiri Denemark <[email protected]>

For error: see
http://logs.test-lab.xenproject.org/osstest/logs/95577/build-amd64-libvirt/5.ts-libvirt-build.log

---
 tests/cputest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/cputest.c +1 -1
index f68a3ec..c374ddf 100644
@@ -700,7 +700,7 @@ mymain(void)
         }                                                               \
     } while (0)
 #else
-# define DO_TEST_CPUID_JSON(arch, host)
+# define DO_TEST_CPUID_JSON(arch, host, json)
 #endif
 
 #define DO_TEST_CPUID(arch, host, json)                                 \
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw
Quoted 22 lines · Wei Liu

In 3704b9003 ("tests: Add CPU detection tests"), a macro called DO_TEST_CPUID_JSON is added. But it took only two arguments when QEMU or YAJL is not set.

Fix it by adding a third argument. Shouldn't have any effect because that macro compiles to nothing.

---
Cc: Jiri Denemark <[email protected]>

For error: see
http://logs.test-lab.xenproject.org/osstest/logs/95577/build-amd64-libvirt/5.ts-libvirt-build.log

---
 tests/cputest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/cputest.c +0 -0
index f68a3ec..c374ddf 100644

tests/cputest.c mymain(void) · line 706

Quoted 8 lines
tests/cputest.c +1 -1
@@ -700,7 +700,7 @@ mymain(void)
         }                                                               \
     } while (0)
 #else
-# define DO_TEST_CPUID_JSON(arch, host)
+# define DO_TEST_CPUID_JSON(arch, host, json)
 #endif
 
 #define DO_TEST_CPUID(arch, host, json)                                 \

Oops, thanks for fixing this. ACK and pushed.

Jirka

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel