From 36592171e1e530a304af869297e5cfe5d9c2fd1f Mon Sep 17 00:00:00 2001 From: maya Date: Tue, 9 Jul 2019 16:24:01 +0000 Subject: [PATCH] return return atf_no_error() instead of 0 for consistency. suggested by moritzbuhl in https://github.com/NetBSD/src/pull/11/ --- tests/fs/common/snapshot.c | 4 ++-- tests/fs/ffs/t_fifos.c | 4 ++-- tests/fs/hfs/t_pathconvert.c | 4 ++-- tests/fs/lfs/t_pr.c | 4 ++-- tests/fs/umapfs/t_basic.c | 4 ++-- tests/lib/libc/db/t_db_hash_seq.c | 6 +++--- tests/lib/libc/sys/t_listen.c | 4 ++-- tests/lib/libpthread/t_condwait.c | 6 +++--- tests/libexec/ld.elf_so/t_dlerror-cleared.c | 4 ++-- tests/libexec/ld.elf_so/t_dlinfo.c | 4 ++-- tests/libexec/ld.elf_so/t_ifunc.c | 4 ++-- 11 files changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/fs/common/snapshot.c b/tests/fs/common/snapshot.c index 7baf611b6ed6..b0dfe0918417 100644 --- a/tests/fs/common/snapshot.c +++ b/tests/fs/common/snapshot.c @@ -1,4 +1,4 @@ -/* $NetBSD: snapshot.c,v 1.7 2013/02/06 09:05:01 hannken Exp $ */ +/* $NetBSD: snapshot.c,v 1.8 2019/07/09 16:24:01 maya Exp $ */ #include #include @@ -224,5 +224,5 @@ ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, snapshot); ATF_TP_ADD_TC(tp, snapshotstress); - return 0; + return atf_no_error(); } diff --git a/tests/fs/ffs/t_fifos.c b/tests/fs/ffs/t_fifos.c index 10b50bbd792d..5818fa317b9b 100644 --- a/tests/fs/ffs/t_fifos.c +++ b/tests/fs/ffs/t_fifos.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_fifos.c,v 1.6 2017/01/13 21:30:39 christos Exp $ */ +/* $NetBSD: t_fifos.c,v 1.7 2019/07/09 16:24:01 maya Exp $ */ #include #include @@ -154,5 +154,5 @@ ATF_TC_CLEANUP(fifos, tc) ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, fifos); - return 0; + return atf_no_error(); } diff --git a/tests/fs/hfs/t_pathconvert.c b/tests/fs/hfs/t_pathconvert.c index 056726a1a6c2..403cab082fcb 100644 --- a/tests/fs/hfs/t_pathconvert.c +++ b/tests/fs/hfs/t_pathconvert.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_pathconvert.c,v 1.6 2017/01/13 21:30:40 christos Exp $ */ +/* $NetBSD: t_pathconvert.c,v 1.7 2019/07/09 16:24:01 maya Exp $ */ #include #include @@ -79,5 +79,5 @@ ATF_TC_BODY(colonslash, tc) ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, colonslash); - return 0; + return atf_no_error(); } diff --git a/tests/fs/lfs/t_pr.c b/tests/fs/lfs/t_pr.c index ed676d8bf9b0..544688d6c0f1 100644 --- a/tests/fs/lfs/t_pr.c +++ b/tests/fs/lfs/t_pr.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_pr.c,v 1.7 2017/01/13 21:30:40 christos Exp $ */ +/* $NetBSD: t_pr.c,v 1.8 2019/07/09 16:24:01 maya Exp $ */ #include #include @@ -56,5 +56,5 @@ ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, mknod); - return 0; + return atf_no_error(); } diff --git a/tests/fs/umapfs/t_basic.c b/tests/fs/umapfs/t_basic.c index c9b2d9b7a5dc..490c257e495c 100644 --- a/tests/fs/umapfs/t_basic.c +++ b/tests/fs/umapfs/t_basic.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_basic.c,v 1.5 2017/01/13 21:30:40 christos Exp $ */ +/* $NetBSD: t_basic.c,v 1.6 2019/07/09 16:24:01 maya Exp $ */ #include #include @@ -141,5 +141,5 @@ ATF_TC_BODY(basic, tc) ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, basic); - return 0; /*XXX?*/ + return atf_no_error(); } diff --git a/tests/lib/libc/db/t_db_hash_seq.c b/tests/lib/libc/db/t_db_hash_seq.c index 6e19e22407b1..c29150b600c9 100644 --- a/tests/lib/libc/db/t_db_hash_seq.c +++ b/tests/lib/libc/db/t_db_hash_seq.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_db_hash_seq.c,v 1.2 2015/06/22 22:35:51 christos Exp $ */ +/* $NetBSD: t_db_hash_seq.c,v 1.3 2019/07/09 16:24:01 maya Exp $ */ /*- * Copyright (c) 2015 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__RCSID("$NetBSD: t_db_hash_seq.c,v 1.2 2015/06/22 22:35:51 christos Exp $"); +__RCSID("$NetBSD: t_db_hash_seq.c,v 1.3 2019/07/09 16:24:01 maya Exp $"); #include #include @@ -338,6 +338,6 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, test_hash_del_alt); ATF_TP_ADD_TC(tp, test_hash_del_every_7); - return 0; + return atf_no_error(); } #endif diff --git a/tests/lib/libc/sys/t_listen.c b/tests/lib/libc/sys/t_listen.c index 9f3f9b8413e2..329b8de9b352 100644 --- a/tests/lib/libc/sys/t_listen.c +++ b/tests/lib/libc/sys/t_listen.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_listen.c,v 1.5 2017/01/13 20:41:50 christos Exp $ */ +/* $NetBSD: t_listen.c,v 1.6 2019/07/09 16:24:01 maya Exp $ */ /* * Copyright (c) 2007 The NetBSD Foundation, Inc. * All rights reserved. @@ -132,5 +132,5 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, listen_err); ATF_TP_ADD_TC(tp, listen_low_port); - return 0; + return atf_no_error(); } diff --git a/tests/lib/libpthread/t_condwait.c b/tests/lib/libpthread/t_condwait.c index 58b4a8bc155a..6b9d4150b521 100644 --- a/tests/lib/libpthread/t_condwait.c +++ b/tests/lib/libpthread/t_condwait.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_condwait.c,v 1.5 2017/01/16 16:29:19 christos Exp $ */ +/* $NetBSD: t_condwait.c,v 1.6 2019/07/09 16:24:01 maya Exp $ */ /* * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -26,7 +26,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__RCSID("$NetBSD: t_condwait.c,v 1.5 2017/01/16 16:29:19 christos Exp $"); +__RCSID("$NetBSD: t_condwait.c,v 1.6 2019/07/09 16:24:01 maya Exp $"); #include #include @@ -141,5 +141,5 @@ ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, cond_wait_real); ATF_TP_ADD_TC(tp, cond_wait_mono); - return 0; + return atf_no_error(); } diff --git a/tests/libexec/ld.elf_so/t_dlerror-cleared.c b/tests/libexec/ld.elf_so/t_dlerror-cleared.c index 47c7f55bb285..d085ae3c6250 100644 --- a/tests/libexec/ld.elf_so/t_dlerror-cleared.c +++ b/tests/libexec/ld.elf_so/t_dlerror-cleared.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_dlerror-cleared.c,v 1.2 2017/01/13 21:30:42 christos Exp $ */ +/* $NetBSD: t_dlerror-cleared.c,v 1.3 2019/07/09 16:24:01 maya Exp $ */ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -63,5 +63,5 @@ ATF_TC_BODY(rtld_dlerror_cleared, tc) ATF_TP_ADD_TCS(tp) { ATF_TP_ADD_TC(tp, rtld_dlerror_cleared); - return 0; + return atf_no_error(); } diff --git a/tests/libexec/ld.elf_so/t_dlinfo.c b/tests/libexec/ld.elf_so/t_dlinfo.c index 7b12528f9f54..e7db9712963e 100644 --- a/tests/libexec/ld.elf_so/t_dlinfo.c +++ b/tests/libexec/ld.elf_so/t_dlinfo.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_dlinfo.c,v 1.5 2017/01/13 21:30:42 christos Exp $ */ +/* $NetBSD: t_dlinfo.c,v 1.6 2019/07/09 16:24:01 maya Exp $ */ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -116,5 +116,5 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, rtld_dlinfo_linkmap_inval); ATF_TP_ADD_TC(tp, rtld_dlinfo_linkmap_dlopen); ATF_TP_ADD_TC(tp, rtld_dlinfo_linkmap_dlopen_iter); - return 0; + return atf_no_error(); } diff --git a/tests/libexec/ld.elf_so/t_ifunc.c b/tests/libexec/ld.elf_so/t_ifunc.c index a022c73f1a2a..fad8a4d6a280 100644 --- a/tests/libexec/ld.elf_so/t_ifunc.c +++ b/tests/libexec/ld.elf_so/t_ifunc.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_ifunc.c,v 1.8 2018/03/09 20:15:03 joerg Exp $ */ +/* $NetBSD: t_ifunc.c,v 1.9 2019/07/09 16:24:01 maya Exp $ */ /* * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -192,5 +192,5 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, rtld_ifunc); ATF_TP_ADD_TC(tp, rtld_hidden_ifunc); ATF_TP_ADD_TC(tp, rtld_main_ifunc); - return 0; + return atf_no_error(); }