Source-Changes-HG archive

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

[src/trunk]: src/tests/rump/rumpkern for the busypage test, replace atf_tc_ex...



details:   https://anonhg.NetBSD.org/src/rev/6fc94a3eab58
branches:  trunk
changeset: 950243:6fc94a3eab58
user:      chs <chs%NetBSD.org@localhost>
date:      Fri Jan 22 22:03:01 2021 +0000

description:
for the busypage test, replace atf_tc_expect_fail() with atf_tc_skip()
because atf apparently has no way to expect a test program to crash.
fixes PR 55945.

diffstat:

 tests/rump/rumpkern/t_vm.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 0d873e2b8294 -r 6fc94a3eab58 tests/rump/rumpkern/t_vm.c
--- a/tests/rump/rumpkern/t_vm.c        Fri Jan 22 00:44:55 2021 +0000
+++ b/tests/rump/rumpkern/t_vm.c        Fri Jan 22 22:03:01 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_vm.c,v 1.5 2020/12/08 17:52:11 chs Exp $     */
+/*     $NetBSD: t_vm.c,v 1.6 2021/01/22 22:03:01 chs Exp $     */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -50,7 +50,10 @@
 ATF_TC_BODY(busypage, tc)
 {
 
+#if 0
        atf_tc_expect_fail("test bug: unbusies an uninitialized page");
+#endif
+       atf_tc_skip("this test is buggy and hits an assertion, but atf doesn't provide any way to expect that a test program crashes, this all we can do is skip");
        rump_init();
 
        rump_schedule();



Home | Main Index | Thread Index | Old Index