From 9d42296eb99846e77d8e11f74120cc6283657d93 Mon Sep 17 00:00:00 2001 From: gson Date: Tue, 25 Aug 2020 13:39:16 +0000 Subject: [PATCH] Only expect the fmod test case to fail when using qemu's TCG CPU emulation, and not under hardware virtualization such as qemu -accel nvmm. --- tests/lib/libm/t_fmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib/libm/t_fmod.c b/tests/lib/libm/t_fmod.c index b94d9f9b3342..50f235046252 100644 --- a/tests/lib/libm/t_fmod.c +++ b/tests/lib/libm/t_fmod.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_fmod.c,v 1.3 2015/01/03 14:23:53 gson Exp $ */ +/* $NetBSD: t_fmod.c,v 1.4 2020/08/25 13:39:16 gson Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -43,7 +43,7 @@ ATF_TC_HEAD(fmod, tc) ATF_TC_BODY(fmod, tc) { - if (isQEMU()) + if (isQEMU_TCG()) atf_tc_expect_fail("PR misc/44767"); ATF_CHECK(fmodf(2.0, 1.0) == 0);