Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/gen Expect a failure to trap unaligned acesse...



details:   https://anonhg.NetBSD.org/src/rev/d77d5b5f068f
branches:  trunk
changeset: 937715:d77d5b5f068f
user:      gson <gson%NetBSD.org@localhost>
date:      Mon Aug 24 06:55:16 2020 +0000

description:
Expect a failure to trap unaligned acesses only when running under
qemu's TCG CPU emulation, not when running under hardware virtualization
such as qemu -accel nvmm.

diffstat:

 tests/lib/libc/gen/t_siginfo.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r cd8d9c8ad8ed -r d77d5b5f068f tests/lib/libc/gen/t_siginfo.c
--- a/tests/lib/libc/gen/t_siginfo.c    Mon Aug 24 05:37:40 2020 +0000
+++ b/tests/lib/libc/gen/t_siginfo.c    Mon Aug 24 06:55:16 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_siginfo.c,v 1.40 2020/06/20 07:30:09 rin Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.41 2020/08/24 06:55:16 gson Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -495,7 +495,7 @@
        addr = calloc(2, sizeof(int));
        ATF_REQUIRE(addr != NULL);
 
-       if (isQEMU())
+       if (isQEMU_TCG())
                atf_tc_expect_fail("QEMU fails to trap unaligned accesses");
 
        /* Force an unaligned access */



Home | Main Index | Thread Index | Old Index