Source-Changes-HG archive

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

[src/trunk]: src/tests To be on the safe side, use the category/number notati...



details:   https://anonhg.NetBSD.org/src/rev/a6d5584fb00a
branches:  trunk
changeset: 778164:a6d5584fb00a
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sun Mar 18 07:14:08 2012 +0000

description:
To be on the safe side, use the category/number notation when referring to
PRs (otherwise third-party sed-scripts might miss the references). Also
remove white-space.

diffstat:

 tests/include/sys/t_types.c            |  18 +++++++-----------
 tests/lib/libc/gen/t_dir.c             |   8 ++++----
 tests/lib/libc/gen/t_humanize_number.c |   5 +++--
 tests/lib/libc/gen/t_siginfo.c         |  26 +++++++++++++-------------
 tests/lib/libc/termios/t_tcsetpgrp.c   |   6 +++---
 tests/lib/librt/t_sched.c              |   6 +++---
 tests/lib/libutil/t_parsedate.c        |  10 +++++-----
 7 files changed, 38 insertions(+), 41 deletions(-)

diffs (truncated from 304 to 300 lines):

diff -r 2b21c642eb3f -r a6d5584fb00a tests/include/sys/t_types.c
--- a/tests/include/sys/t_types.c       Sun Mar 18 07:00:51 2012 +0000
+++ b/tests/include/sys/t_types.c       Sun Mar 18 07:14:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_types.c,v 1.3 2012/03/17 21:31:29 christos Exp $ */
+/*     $NetBSD: t_types.c,v 1.4 2012/03/18 07:14:08 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_types.c,v 1.3 2012/03/17 21:31:29 christos Exp $");
+__RCSID("$NetBSD: t_types.c,v 1.4 2012/03/18 07:14:08 jruoho Exp $");
 
 #include <sys/types.h>
 
@@ -77,7 +77,7 @@
 ATF_TC_HEAD(types_signed, tc)
 {
        atf_tc_set_md_var(tc, "descr", "Signed types(3)"
-           " PR/44847");
+           " (PR standards/44847)");
 }
 
 ATF_TC_BODY(types_signed, tc)
@@ -108,7 +108,8 @@
 ATF_TC(types_unsigned);
 ATF_TC_HEAD(types_unsigned, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Unsigned types(3)");
+       atf_tc_set_md_var(tc, "descr", "Unsigned types(3)"
+               " (PR standards/18067)");
 }
 
 ATF_TC_BODY(types_unsigned, tc)
@@ -122,19 +123,14 @@
        fb = 0;
        ff = 0;
        ino = 0;
+       lim = 0;
        size = 0;
 
        ATF_CHECK((fb - 1) > 0);
        ATF_CHECK((ff - 1) > 0);
        ATF_CHECK((ino - 1) > 0);
+       ATF_CHECK((lim - 1) > 0);
        ATF_CHECK((size - 1) > 0);
-
-       /*
-        * Test also rlim_t; PR standards/18067.
-        */
-       lim = 0;
-
-       ATF_CHECK((lim - 1) > 0);
 }
 
 ATF_TP_ADD_TCS(tp)
diff -r 2b21c642eb3f -r a6d5584fb00a tests/lib/libc/gen/t_dir.c
--- a/tests/lib/libc/gen/t_dir.c        Sun Mar 18 07:00:51 2012 +0000
+++ b/tests/lib/libc/gen/t_dir.c        Sun Mar 18 07:14:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dir.c,v 1.4 2011/07/07 09:49:59 jruoho Exp $ */
+/* $NetBSD: t_dir.c,v 1.5 2012/03/18 07:14:08 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -43,8 +43,8 @@
 ATF_TC_HEAD(seekdir_basic, tc)
 {
 
-       atf_tc_set_md_var(tc, "descr",
-           "Check telldir(3) and seekdir(3) for correct behavior (PR/24324)");
+       atf_tc_set_md_var(tc, "descr", "Check telldir(3) and seekdir(3) "
+           "for correct behavior (PR lib/24324)");
 }
 
 ATF_TC_BODY(seekdir_basic, tc)
@@ -116,7 +116,7 @@
 {
 
        atf_tc_set_md_var(tc, "descr",
-           "Check telldir(3) for memory leakage (PR/24324)");
+           "Check telldir(3) for memory leakage (PR lib/24324)");
 }
 
 ATF_TC_BODY(telldir_leak, tc)
diff -r 2b21c642eb3f -r a6d5584fb00a tests/lib/libc/gen/t_humanize_number.c
--- a/tests/lib/libc/gen/t_humanize_number.c    Sun Mar 18 07:00:51 2012 +0000
+++ b/tests/lib/libc/gen/t_humanize_number.c    Sun Mar 18 07:14:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_humanize_number.c,v 1.7 2012/03/17 20:06:46 christos Exp $   */
+/*     $NetBSD: t_humanize_number.c,v 1.8 2012/03/18 07:14:08 jruoho Exp $     */
 
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
@@ -247,7 +247,8 @@
 ATF_TC_HEAD(humanize_number_big, tc)
 {
 
-       atf_tc_set_md_var(tc, "descr", "Test humanize big numbers (PR/44097)");
+       atf_tc_set_md_var(tc, "descr", "Test humanize "
+           "big numbers (PR lib/44097)");
 }
 
 ATF_TC_BODY(humanize_number_big, tc)
diff -r 2b21c642eb3f -r a6d5584fb00a tests/lib/libc/gen/t_siginfo.c
--- a/tests/lib/libc/gen/t_siginfo.c    Sun Mar 18 07:00:51 2012 +0000
+++ b/tests/lib/libc/gen/t_siginfo.c    Sun Mar 18 07:14:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_siginfo.c,v 1.13 2012/03/17 20:10:08 christos Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.14 2012/03/18 07:14:08 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
                for (i = 0; i < __arraycount(ctx->uc_sigmask.__bits); i++)
                        printf("uc_sigmask[%d] 0x%x\n", i,
                            ctx->uc_sigmask.__bits[i]);
-               printf("uc_stack %p %lu 0x%x\n", ctx->uc_stack.ss_sp, 
+               printf("uc_stack %p %lu 0x%x\n", ctx->uc_stack.ss_sp,
                    (unsigned long)ctx->uc_stack.ss_size,
                    ctx->uc_stack.ss_flags);
                for (i = 0; i < __arraycount(ctx->uc_mcontext.__gregs); i++)
@@ -101,10 +101,10 @@
 ATF_TC(sigalarm);
 
 ATF_TC_HEAD(sigalarm, tc)
-{ 
+{
 
        atf_tc_set_md_var(tc, "descr",
-           "Checks that signal trampoline correctly calls SIGALRM handler"); 
+           "Checks that signal trampoline correctly calls SIGALRM handler");
 }
 
 ATF_TC_BODY(sigalarm, tc)
@@ -118,7 +118,7 @@
                alarm(1);
                sleep(1);
        }
-       atf_tc_fail("SIGALRM handler wasn't called"); 
+       atf_tc_fail("SIGALRM handler wasn't called");
 }
 
 static void
@@ -187,7 +187,7 @@
 {
        sigset_t set;
 
-       sigchild_setup(); 
+       sigchild_setup();
 
        status = 25;
        code = CLD_EXITED;
@@ -214,10 +214,10 @@
 }
 
 ATF_TC_BODY(sigchild_dump, tc)
-{ 
+{
        sigset_t set;
 
-       sigchild_setup(); 
+       sigchild_setup();
 
        status = SIGSEGV;
        code = CLD_DUMPED;
@@ -246,10 +246,10 @@
 }
 
 ATF_TC_BODY(sigchild_kill, tc)
-{ 
+{
        sigset_t set;
 
-       sigchild_setup(); 
+       sigchild_setup();
 
        status = SIGPIPE;
        code = CLD_KILLED;
@@ -295,7 +295,7 @@
 }
 
 ATF_TC_BODY(sigfpe_flt, tc)
-{ 
+{
        struct sigaction sa;
        double d = strtod("0", NULL);
 
@@ -345,11 +345,11 @@
 
        atf_tc_set_md_var(tc, "descr",
            "Checks that signal trampoline correctly calls SIGFPE handler "
-           "for integer div-by-zero PR/43655");
+           "for integer div-by-zero (PR port-i386/43655)");
 }
 
 ATF_TC_BODY(sigfpe_int, tc)
-{ 
+{
        struct sigaction sa;
        long l = strtol("0", NULL, 10);
 
diff -r 2b21c642eb3f -r a6d5584fb00a tests/lib/libc/termios/t_tcsetpgrp.c
--- a/tests/lib/libc/termios/t_tcsetpgrp.c      Sun Mar 18 07:00:51 2012 +0000
+++ b/tests/lib/libc/termios/t_tcsetpgrp.c      Sun Mar 18 07:14:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_tcsetpgrp.c,v 1.2 2012/03/17 20:12:09 christos Exp $ */
+/*     $NetBSD: t_tcsetpgrp.c,v 1.3 2012/03/18 07:14:08 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_tcsetpgrp.c,v 1.2 2012/03/17 20:12:09 christos Exp $");
+__RCSID("$NetBSD: t_tcsetpgrp.c,v 1.3 2012/03/18 07:14:08 jruoho Exp $");
 
 #include <sys/wait.h>
 
@@ -42,7 +42,7 @@
 ATF_TC_HEAD(tcsetpgrp_err, tc)
 {
        atf_tc_set_md_var(tc, "descr", "Test errors from tcsetpgrp(3)"
-           " PR/41673");
+           " (PR lib/41673)");
 }
 
 ATF_TC_BODY(tcsetpgrp_err, tc)
diff -r 2b21c642eb3f -r a6d5584fb00a tests/lib/librt/t_sched.c
--- a/tests/lib/librt/t_sched.c Sun Mar 18 07:00:51 2012 +0000
+++ b/tests/lib/librt/t_sched.c Sun Mar 18 07:14:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sched.c,v 1.3 2012/03/18 02:14:16 christos Exp $ */
+/* $NetBSD: t_sched.c,v 1.4 2012/03/18 07:14:08 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_sched.c,v 1.3 2012/03/18 02:14:16 christos Exp $");
+__RCSID("$NetBSD: t_sched.c,v 1.4 2012/03/18 07:14:08 jruoho Exp $");
 
 #include <sched.h>
 #include <limits.h>
@@ -189,7 +189,7 @@
 ATF_TC_HEAD(sched_rr_get_interval_1, tc)
 {
        atf_tc_set_md_var(tc, "descr", "Test sched_rr_get_interval(3), #1"
-           " PR/44768");
+           " (PR lib/44768)");
        atf_tc_set_md_var(tc, "require.user", "root");
 }
 
diff -r 2b21c642eb3f -r a6d5584fb00a tests/lib/libutil/t_parsedate.c
--- a/tests/lib/libutil/t_parsedate.c   Sun Mar 18 07:00:51 2012 +0000
+++ b/tests/lib/libutil/t_parsedate.c   Sun Mar 18 07:14:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_parsedate.c,v 1.4 2012/03/17 21:33:13 christos Exp $ */
+/* $NetBSD: t_parsedate.c,v 1.5 2012/03/18 07:14:08 jruoho Exp $ */
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_parsedate.c,v 1.4 2012/03/17 21:33:13 christos Exp $");
+__RCSID("$NetBSD: t_parsedate.c,v 1.5 2012/03/18 07:14:08 jruoho Exp $");
 
 #include <atf-c.h>
 #include <util.h>
@@ -39,7 +39,7 @@
 ATF_TC_HEAD(dates, tc)
 {
        atf_tc_set_md_var(tc, "descr", "Test unambiguous dates"
-           " PR/44255");
+           " (PR lib/44255)");
 }
 
 ATF_TC_BODY(dates, tc)
@@ -61,7 +61,7 @@
 ATF_TC_HEAD(times, tc)
 {
        atf_tc_set_md_var(tc, "descr", "Test times"
-           " PR/44255");
+           " (PR lib/44255)");
 }
 
 ATF_TC_BODY(times, tc)
@@ -78,7 +78,7 @@
 ATF_TC_HEAD(relative, tc)
 {
        atf_tc_set_md_var(tc, "descr", "Test relative items"
-           " PR/44255");



Home | Main Index | Thread Index | Old Index