Module Name:    src
Committed By:   jruoho
Date:           Mon May  9 06:05:54 UTC 2011

Modified Files:
        src/tests/lib/libc/string: t_strerror.c

Log Message:
List the ATF_TC_() thins in the order of appearance.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/string/t_strerror.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/string/t_strerror.c
diff -u src/tests/lib/libc/string/t_strerror.c:1.1 src/tests/lib/libc/string/t_strerror.c:1.2
--- src/tests/lib/libc/string/t_strerror.c:1.1	Mon May  9 06:04:14 2011
+++ src/tests/lib/libc/string/t_strerror.c	Mon May  9 06:05:54 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strerror.c,v 1.1 2011/05/09 06:04:14 jruoho Exp $ */
+/* $NetBSD: t_strerror.c,v 1.2 2011/05/09 06:05:54 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strerror.c,v 1.1 2011/05/09 06:04:14 jruoho Exp $");
+__RCSID("$NetBSD: t_strerror.c,v 1.2 2011/05/09 06:05:54 jruoho Exp $");
 
 #include <atf-c.h>
 #include <errno.h>
@@ -43,6 +43,17 @@
 	atf_tc_set_md_var(tc, "descr", "A basic test of strerror(3)");
 }
 
+ATF_TC_BODY(strerror_basic, tc)
+{
+	int i;
+
+	for (i = 1; i < sys_nerr; i++)
+		ATF_REQUIRE(strstr(strerror(i), "Unknown error:") == NULL);
+
+	for (; i < sys_nerr + 10; i++)
+		ATF_REQUIRE(strstr(strerror(i), "Unknown error:") != NULL);
+}
+
 ATF_TC(strerror_err);
 ATF_TC_HEAD(strerror_err, tc)
 {
@@ -63,17 +74,6 @@
 	ATF_REQUIRE(errno == EINVAL);
 }
 
-ATF_TC_BODY(strerror_basic, tc)
-{
-	int i;
-
-	for (i = 1; i < sys_nerr; i++)
-		ATF_REQUIRE(strstr(strerror(i), "Unknown error:") == NULL);
-
-	for (; i < sys_nerr + 10; i++)
-		ATF_REQUIRE(strstr(strerror(i), "Unknown error:") != NULL);
-}
-
 ATF_TC(strerror_r_basic);
 ATF_TC_HEAD(strerror_r_basic, tc)
 {

Reply via email to