Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/gen Rename some test case names for consisten...



details:   https://anonhg.NetBSD.org/src/rev/76f7264e7238
branches:  trunk
changeset: 767044:76f7264e7238
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Jul 07 09:49:59 2011 +0000

description:
Rename some test case names for consistency. No functional change.

diffstat:

 tests/lib/libc/gen/t_basedirname.c     |  20 +++++++++-----------
 tests/lib/libc/gen/t_dir.c             |  12 +++++-------
 tests/lib/libc/gen/t_fmtcheck.c        |  11 +++++------
 tests/lib/libc/gen/t_glob_star.c       |  23 +++++++++++------------
 tests/lib/libc/gen/t_humanize_number.c |  20 +++++++++-----------
 tests/lib/libc/gen/t_randomid.c        |  11 +++++------
 tests/lib/libc/gen/t_syslog_pthread.c  |  11 ++++++-----
 7 files changed, 50 insertions(+), 58 deletions(-)

diffs (truncated from 351 to 300 lines):

diff -r 50b608c480e1 -r 76f7264e7238 tests/lib/libc/gen/t_basedirname.c
--- a/tests/lib/libc/gen/t_basedirname.c        Thu Jul 07 09:31:27 2011 +0000
+++ b/tests/lib/libc/gen/t_basedirname.c        Thu Jul 07 09:49:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_basedirname.c,v 1.1 2010/12/22 23:45:44 pgoyette Exp $       */
+/*     $NetBSD: t_basedirname.c,v 1.2 2011/07/07 09:49:59 jruoho Exp $ */
 
 /*
  * Regression test for basename(3).
@@ -90,14 +90,13 @@
        { NULL,                 NULL }
 };
 
-ATF_TC(t_basename);
-
-ATF_TC_HEAD(t_basename, tc)
+ATF_TC(basename_posix);
+ATF_TC_HEAD(basename_posix, tc)
 {
        atf_tc_set_md_var(tc, "descr", "Test basename(3) with POSIX examples");
 }
 
-ATF_TC_BODY(t_basename, tc)
+ATF_TC_BODY(basename_posix, tc)
 {
        char testbuf[32], *base;
        int i;
@@ -142,14 +141,13 @@
 }
 
 
-ATF_TC(t_dirname);
-
-ATF_TC_HEAD(t_dirname, tc)
+ATF_TC(dirname_posix);
+ATF_TC_HEAD(dirname_posix, tc)
 {
        atf_tc_set_md_var(tc, "descr", "Test dirname(3) with POSIX examples");
 }
 
-ATF_TC_BODY(t_dirname, tc)
+ATF_TC_BODY(dirname_posix, tc)
 {
        char testbuf[32], *base;
        int i;
@@ -195,8 +193,8 @@
 
 ATF_TP_ADD_TCS(tp)
 {
-       ATF_TP_ADD_TC(tp, t_basename);
-       ATF_TP_ADD_TC(tp, t_dirname);
+       ATF_TP_ADD_TC(tp, basename_posix);
+       ATF_TP_ADD_TC(tp, dirname_posix);
 
        return atf_no_error();
 }
diff -r 50b608c480e1 -r 76f7264e7238 tests/lib/libc/gen/t_dir.c
--- a/tests/lib/libc/gen/t_dir.c        Thu Jul 07 09:31:27 2011 +0000
+++ b/tests/lib/libc/gen/t_dir.c        Thu Jul 07 09:49:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_dir.c,v 1.3 2011/06/11 18:03:18 christos Exp $ */
+/* $NetBSD: t_dir.c,v 1.4 2011/07/07 09:49:59 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -39,16 +39,15 @@
 
 #include <sys/stat.h>
 
-ATF_TC(seekdir);
-
-ATF_TC_HEAD(seekdir, tc)
+ATF_TC(seekdir_basic);
+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_BODY(seekdir, tc)
+ATF_TC_BODY(seekdir_basic, tc)
 {
        DIR *dp;
        char *wasname;
@@ -113,7 +112,6 @@
 }
 
 ATF_TC(telldir_leak);
-
 ATF_TC_HEAD(telldir_leak, tc)
 {
 
@@ -161,7 +159,7 @@
 ATF_TP_ADD_TCS(tp)
 {
 
-       ATF_TP_ADD_TC(tp, seekdir);
+       ATF_TP_ADD_TC(tp, seekdir_basic);
        ATF_TP_ADD_TC(tp, telldir_leak);
 
        return atf_no_error();
diff -r 50b608c480e1 -r 76f7264e7238 tests/lib/libc/gen/t_fmtcheck.c
--- a/tests/lib/libc/gen/t_fmtcheck.c   Thu Jul 07 09:31:27 2011 +0000
+++ b/tests/lib/libc/gen/t_fmtcheck.c   Thu Jul 07 09:49:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_fmtcheck.c,v 1.1 2010/12/28 12:46:15 pgoyette Exp $  */
+/*     $NetBSD: t_fmtcheck.c,v 1.2 2011/07/07 09:49:59 jruoho Exp $    */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -75,15 +75,14 @@
        { "%p %30s %#llx %-10.*e", "This number %lu%% and string %s has %qd numbers and %.*g floats", 1 },
 };
 
-ATF_TC(tc_fmtcheck);
-
-ATF_TC_HEAD(tc_fmtcheck, tc)
+ATF_TC(fmtcheck_basic);
+ATF_TC_HEAD(fmtcheck_basic, tc)
 {
 
        atf_tc_set_md_var(tc, "descr", "Test fmtcheck(3)");
 }
 
-ATF_TC_BODY(tc_fmtcheck, tc)
+ATF_TC_BODY(fmtcheck_basic, tc)
 {
        unsigned int    i, r;
        const char      *f, *cf, *f1, *f2;
@@ -110,7 +109,7 @@
 ATF_TP_ADD_TCS(tp)
 {
 
-       ATF_TP_ADD_TC(tp, tc_fmtcheck);
+       ATF_TP_ADD_TC(tp, fmtcheck_basic);
 
        return atf_no_error();
 }
diff -r 50b608c480e1 -r 76f7264e7238 tests/lib/libc/gen/t_glob_star.c
--- a/tests/lib/libc/gen/t_glob_star.c  Thu Jul 07 09:31:27 2011 +0000
+++ b/tests/lib/libc/gen/t_glob_star.c  Thu Jul 07 09:49:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_glob_star.c,v 1.6 2010/11/03 16:10:21 christos Exp $ */
+/*     $NetBSD: t_glob_star.c,v 1.7 2011/07/07 09:49:59 jruoho Exp $   */
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_glob_star.c,v 1.6 2010/11/03 16:10:21 christos Exp $");
+__RCSID("$NetBSD: t_glob_star.c,v 1.7 2011/07/07 09:49:59 jruoho Exp $");
 
 #include <atf-c.h>
 
@@ -55,9 +55,6 @@
 #define DPRINTF(a)
 #endif
 
-ATF_TC(t_glob_star);
-ATF_TC(t_glob_star_not);
-
 struct gl_file {
        const char *name;
        int dir;
@@ -88,7 +85,7 @@
        { "a/b", b, __arraycount(b), 0 },
 };
 
-static const char *glob_star[] = { 
+static const char *glob_star[] = {
     "a/1", "a/3", "a/4", "a/b", "a/b/w", "a/b/x", "a/b/y", "a/b/z",
 };
 
@@ -193,33 +190,35 @@
 }
 
 
-ATF_TC_HEAD(t_glob_star, tc)
+ATF_TC(glob_star);
+ATF_TC_HEAD(glob_star, tc)
 {
        atf_tc_set_md_var(tc, "descr",
            "Test glob(3) ** with GLOB_STAR");
 }
 
-ATF_TC_BODY(t_glob_star, tc)
+ATF_TC_BODY(glob_star, tc)
 {
        run("a/**", GLOB_STAR, glob_star, __arraycount(glob_star));
 }
 
-ATF_TC_HEAD(t_glob_star_not, tc)
+ATF_TC(glob_star_not);
+ATF_TC_HEAD(glob_star_not, tc)
 {
        atf_tc_set_md_var(tc, "descr",
            "Test glob(3) ** without GLOB_STAR");
 }
 
 
-ATF_TC_BODY(t_glob_star_not, tc)
+ATF_TC_BODY(glob_star_not, tc)
 {
        run("a/**", 0, glob_star_not, __arraycount(glob_star_not));
 }
 
 ATF_TP_ADD_TCS(tp)
 {
-       ATF_TP_ADD_TC(tp, t_glob_star);
-       ATF_TP_ADD_TC(tp, t_glob_star_not);
+       ATF_TP_ADD_TC(tp, glob_star);
+       ATF_TP_ADD_TC(tp, glob_star_not);
 
        return atf_no_error();
 }
diff -r 50b608c480e1 -r 76f7264e7238 tests/lib/libc/gen/t_humanize_number.c
--- a/tests/lib/libc/gen/t_humanize_number.c    Thu Jul 07 09:31:27 2011 +0000
+++ b/tests/lib/libc/gen/t_humanize_number.c    Thu Jul 07 09:49:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_humanize_number.c,v 1.4 2011/06/11 18:03:18 christos Exp $   */
+/*     $NetBSD: t_humanize_number.c,v 1.5 2011/07/07 09:49:59 jruoho Exp $     */
 
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
@@ -194,15 +194,14 @@
        va_end(ap);
 }
 
-ATF_TC(humanize_basic);
-
-ATF_TC_HEAD(humanize_basic, tc)
+ATF_TC(humanize_number_basic);
+ATF_TC_HEAD(humanize_number_basic, tc)
 {
 
        atf_tc_set_md_var(tc, "descr", "Test humanize_number(3)");
 }
 
-ATF_TC_BODY(humanize_basic, tc)
+ATF_TC_BODY(humanize_number_basic, tc)
 {
        char fbuf[128];
        const struct hnopts *ho;
@@ -244,15 +243,14 @@
        }
 }
 
-ATF_TC(humanize_big);
-
-ATF_TC_HEAD(humanize_big, tc)
+ATF_TC(humanize_number_big);
+ATF_TC_HEAD(humanize_number_big, tc)
 {
 
        atf_tc_set_md_var(tc, "descr", "Test humanize big numbers");
 }
 
-ATF_TC_BODY(humanize_big, tc)
+ATF_TC_BODY(humanize_number_big, tc)
 {
        char buf[1024];
        int rv;
@@ -308,8 +306,8 @@
 ATF_TP_ADD_TCS(tp)
 {
 
-       ATF_TP_ADD_TC(tp, humanize_basic);
-       ATF_TP_ADD_TC(tp, humanize_big);
+       ATF_TP_ADD_TC(tp, humanize_number_basic);
+       ATF_TP_ADD_TC(tp, humanize_number_big);
 
        return atf_no_error();
 }
diff -r 50b608c480e1 -r 76f7264e7238 tests/lib/libc/gen/t_randomid.c
--- a/tests/lib/libc/gen/t_randomid.c   Thu Jul 07 09:31:27 2011 +0000
+++ b/tests/lib/libc/gen/t_randomid.c   Thu Jul 07 09:49:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_randomid.c,v 1.2 2011/01/13 03:00:41 pgoyette Exp $ */
+/* $NetBSD: t_randomid.c,v 1.3 2011/07/07 09:49:59 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -40,15 +40,14 @@
 
 uint64_t last[65536];
 
-ATF_TC(randomid);
-
-ATF_TC_HEAD(randomid, tc)
+ATF_TC(randomid_basic);
+ATF_TC_HEAD(randomid_basic, tc)
 {
 
        atf_tc_set_md_var(tc, "descr", "Check randomid(3)");
 }
 
-ATF_TC_BODY(randomid, tc)



Home | Main Index | Thread Index | Old Index