Source-Changes-HG archive

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

[src/trunk]: src/tests/fs/vfs use atf interfaces for error reportage



details:   https://anonhg.NetBSD.org/src/rev/f856833d47be
branches:  trunk
changeset: 758627:f856833d47be
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Nov 11 16:03:55 2010 +0000

description:
use atf interfaces for error reportage

diffstat:

 tests/fs/vfs/t_io.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r e773bf4d3671 -r f856833d47be tests/fs/vfs/t_io.c
--- a/tests/fs/vfs/t_io.c       Thu Nov 11 16:01:59 2010 +0000
+++ b/tests/fs/vfs/t_io.c       Thu Nov 11 16:03:55 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_io.c,v 1.1 2010/08/19 02:36:02 pooka Exp $   */
+/*     $NetBSD: t_io.c,v 1.2 2010/11/11 16:03:55 pooka Exp $   */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -67,8 +67,7 @@
        memset(b3, 0, therange);
        memset(b3 + getpagesize() - 1, 'B', 2);
 
-       if (memcmp(b2, b3, therange) != 0)
-               abort();
+       ATF_REQUIRE_EQ(memcmp(b2, b3, therange), 0);
 
        rump_sys_close(fd);
        rump_sys_chdir("/");



Home | Main Index | Thread Index | Old Index