]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
x86emul/test: avoid meaningless output
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Dec 2016 11:07:31 +0000 (12:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Dec 2016 11:07:31 +0000 (12:07 +0100)
Unconditionally reporting a skipped test in 64-bit builds is not very
useful, especially when quite a few more tests are about to be added.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/test_x86_emulator.c

index aeac53b56a5943c06f5ce0330267416e8280d994..8d9679ffaba0ada0934520387b24ddc2c9839d4d 100644 (file)
@@ -613,8 +613,8 @@ int main(int argc, char **argv)
         goto fail;
     printf("okay\n");
 
-    printf("%-40s", "Testing daa/das (all inputs)...");
 #ifndef __x86_64__
+    printf("%-40s", "Testing daa/das (all inputs)...");
     /* Bits 0-7: AL; Bit 8: EFLG_AF; Bit 9: EFLG_CF; Bit 10: DAA vs. DAS. */
     for ( i = 0; i < 0x800; i++ )
     {
@@ -679,9 +679,7 @@ int main(int argc, char **argv)
         }
     }
     printf("okay\n");
-#else
-    printf("skipped\n");
-
+#else /* x86-64 */
     printf("%-40s", "Testing cmovz %ecx,%eax...");
     instr[0] = 0x0f; instr[1] = 0x44; instr[2] = 0xc1;
     regs.eflags = 0x200;