Source-Changes-HG archive

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

[src/trunk]: src/tests return return atf_no_error() instead of 0 for consiste...



details:   https://anonhg.NetBSD.org/src/rev/abc9c1a4293e
branches:  trunk
changeset: 962265:abc9c1a4293e
user:      maya <maya%NetBSD.org@localhost>
date:      Tue Jul 09 16:24:01 2019 +0000

description:
return return atf_no_error() instead of 0 for consistency.

suggested by moritzbuhl in https://github.com/NetBSD/src/pull/11/

diffstat:

 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(-)

diffs (195 lines):

diff -r 94a8f1328548 -r abc9c1a4293e tests/fs/common/snapshot.c
--- a/tests/fs/common/snapshot.c        Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/fs/common/snapshot.c        Tue Jul 09 16:24:01 2019 +0000
@@ -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 <sys/types.h>
 #include <sys/ioctl.h>
@@ -224,5 +224,5 @@
 {
        ATF_TP_ADD_TC(tp, snapshot);
        ATF_TP_ADD_TC(tp, snapshotstress);
-       return 0;
+       return atf_no_error();
 }
diff -r 94a8f1328548 -r abc9c1a4293e tests/fs/ffs/t_fifos.c
--- a/tests/fs/ffs/t_fifos.c    Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/fs/ffs/t_fifos.c    Tue Jul 09 16:24:01 2019 +0000
@@ -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 <sys/types.h>
 #include <sys/mount.h>
@@ -154,5 +154,5 @@
 ATF_TP_ADD_TCS(tp)
 {
        ATF_TP_ADD_TC(tp, fifos);
-       return 0;
+       return atf_no_error();
 }
diff -r 94a8f1328548 -r abc9c1a4293e tests/fs/hfs/t_pathconvert.c
--- a/tests/fs/hfs/t_pathconvert.c      Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/fs/hfs/t_pathconvert.c      Tue Jul 09 16:24:01 2019 +0000
@@ -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 <sys/types.h>
 #include <sys/mount.h>
@@ -79,5 +79,5 @@
 ATF_TP_ADD_TCS(tp)
 {
        ATF_TP_ADD_TC(tp, colonslash);
-       return 0;
+       return atf_no_error();
 }
diff -r 94a8f1328548 -r abc9c1a4293e tests/fs/lfs/t_pr.c
--- a/tests/fs/lfs/t_pr.c       Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/fs/lfs/t_pr.c       Tue Jul 09 16:24:01 2019 +0000
@@ -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 <sys/types.h>
 #include <sys/mount.h>
@@ -56,5 +56,5 @@
 {
 
        ATF_TP_ADD_TC(tp, mknod);
-       return 0;
+       return atf_no_error();
 }
diff -r 94a8f1328548 -r abc9c1a4293e tests/fs/umapfs/t_basic.c
--- a/tests/fs/umapfs/t_basic.c Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/fs/umapfs/t_basic.c Tue Jul 09 16:24:01 2019 +0000
@@ -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 <sys/types.h>
 #include <sys/param.h>
@@ -141,5 +141,5 @@
 ATF_TP_ADD_TCS(tp)
 {
        ATF_TP_ADD_TC(tp, basic);
-       return 0; /*XXX?*/
+       return atf_no_error();
 }
diff -r 94a8f1328548 -r abc9c1a4293e tests/lib/libc/db/t_db_hash_seq.c
--- a/tests/lib/libc/db/t_db_hash_seq.c Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/lib/libc/db/t_db_hash_seq.c Tue Jul 09 16:24:01 2019 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/types.h>
 #include <sys/socket.h>
@@ -338,6 +338,6 @@
        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 -r 94a8f1328548 -r abc9c1a4293e tests/lib/libc/sys/t_listen.c
--- a/tests/lib/libc/sys/t_listen.c     Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/lib/libc/sys/t_listen.c     Tue Jul 09 16:24:01 2019 +0000
@@ -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_TC(tp, listen_err);
        ATF_TP_ADD_TC(tp, listen_low_port);
 
-       return 0;
+       return atf_no_error();
 }
diff -r 94a8f1328548 -r abc9c1a4293e tests/lib/libpthread/t_condwait.c
--- a/tests/lib/libpthread/t_condwait.c Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/lib/libpthread/t_condwait.c Tue Jul 09 16:24:01 2019 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/time.h>
 #include <errno.h>
@@ -141,5 +141,5 @@
 {
        ATF_TP_ADD_TC(tp, cond_wait_real);
        ATF_TP_ADD_TC(tp, cond_wait_mono);
-       return 0;
+       return atf_no_error();
 }
diff -r 94a8f1328548 -r abc9c1a4293e tests/libexec/ld.elf_so/t_dlerror-cleared.c
--- a/tests/libexec/ld.elf_so/t_dlerror-cleared.c       Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/libexec/ld.elf_so/t_dlerror-cleared.c       Tue Jul 09 16:24:01 2019 +0000
@@ -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_TP_ADD_TCS(tp)
 {
        ATF_TP_ADD_TC(tp, rtld_dlerror_cleared);
-       return 0;
+       return atf_no_error();
 }
diff -r 94a8f1328548 -r abc9c1a4293e tests/libexec/ld.elf_so/t_dlinfo.c
--- a/tests/libexec/ld.elf_so/t_dlinfo.c        Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/libexec/ld.elf_so/t_dlinfo.c        Tue Jul 09 16:24:01 2019 +0000
@@ -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_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 -r 94a8f1328548 -r abc9c1a4293e tests/libexec/ld.elf_so/t_ifunc.c
--- a/tests/libexec/ld.elf_so/t_ifunc.c Tue Jul 09 16:21:52 2019 +0000
+++ b/tests/libexec/ld.elf_so/t_ifunc.c Tue Jul 09 16:24:01 2019 +0000
@@ -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_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();
 }



Home | Main Index | Thread Index | Old Index