CVS commit: src/tests/lib/libc/inet

2022-10-06 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Oct  6 06:05:31 UTC 2022

Modified Files:
src/tests/lib/libc/inet: t_inet_network.c

Log Message:
add tests for PR/57046.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/inet/t_inet_network.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/inet/t_inet_network.c
diff -u src/tests/lib/libc/inet/t_inet_network.c:1.4 src/tests/lib/libc/inet/t_inet_network.c:1.5
--- src/tests/lib/libc/inet/t_inet_network.c:1.4	Thu Apr  9 16:47:56 2015
+++ src/tests/lib/libc/inet/t_inet_network.c	Thu Oct  6 06:05:31 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: t_inet_network.c,v 1.4 2015/04/09 16:47:56 ginsbach Exp $ */
+/* $NetBSD: t_inet_network.c,v 1.5 2022/10/06 06:05:31 ryo Exp $ */
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include 
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_inet_network.c,v 1.4 2015/04/09 16:47:56 ginsbach Exp $");
+__RCSID("$NetBSD: t_inet_network.c,v 1.5 2022/10/06 06:05:31 ryo Exp $");
 
 #include 
 
@@ -92,6 +92,9 @@ ATF_TC_BODY(inet_network_err, tc)
 		0x);
 	H_REQUIRE("255.255.255.255", 0x);
 	H_REQUIRE("x", 0x);
+	H_REQUIRE("x1", 0x);
+	H_REQUIRE("xab", 0x);
+	H_REQUIRE("x100", 0x);
 	H_REQUIRE("078", 0x);
 	H_REQUIRE("127.0xfff", 0x);
 }



CVS commit: src/tests/lib/libc/inet

2022-10-06 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Oct  6 06:05:31 UTC 2022

Modified Files:
src/tests/lib/libc/inet: t_inet_network.c

Log Message:
add tests for PR/57046.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/inet/t_inet_network.c

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



CVS commit: src/tests/lib/libc/inet

2022-01-16 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 16 10:38:59 UTC 2022

Modified Files:
src/tests/lib/libc/inet: t_inet_addr.c

Log Message:
tests/libc/inet: remove stray semicolons

No binary change.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/inet/t_inet_addr.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/inet/t_inet_addr.c
diff -u src/tests/lib/libc/inet/t_inet_addr.c:1.1 src/tests/lib/libc/inet/t_inet_addr.c:1.2
--- src/tests/lib/libc/inet/t_inet_addr.c:1.1	Thu Apr  9 16:47:56 2015
+++ src/tests/lib/libc/inet/t_inet_addr.c	Sun Jan 16 10:38:59 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: t_inet_addr.c,v 1.1 2015/04/09 16:47:56 ginsbach Exp $ */
+/* $NetBSD: t_inet_addr.c,v 1.2 2022/01/16 10:38:59 rillig Exp $ */
 
 /*
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 #include 
 __COPYRIGHT("@(#) Copyright (c) 2011\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_inet_addr.c,v 1.1 2015/04/09 16:47:56 ginsbach Exp $");
+__RCSID("$NetBSD: t_inet_addr.c,v 1.2 2022/01/16 10:38:59 rillig Exp $");
 
 #include 
 
@@ -57,7 +57,7 @@ ATF_TC_BODY(inet_addr_basic, tc)
 
 	for (i = 0; i < __arraycount(addrs); i++) {
 
-		(void)fprintf(stderr, "checking %s\n", addrs[i]);;
+		(void)fprintf(stderr, "checking %s\n", addrs[i]);
 
 		addr = inet_addr(addrs[i]);
 		ia.s_addr = addr;
@@ -88,7 +88,7 @@ ATF_TC_BODY(inet_addr_err, tc)
 
 	for (i = 0; i < __arraycount(addrs); i++) {
 
-		(void)fprintf(stderr, "checking %s\n", addrs[i]);;
+		(void)fprintf(stderr, "checking %s\n", addrs[i]);
 
 		addr = inet_addr(addrs[i]);
 		ia.s_addr = addr;



CVS commit: src/tests/lib/libc/inet

2022-01-16 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 16 10:38:59 UTC 2022

Modified Files:
src/tests/lib/libc/inet: t_inet_addr.c

Log Message:
tests/libc/inet: remove stray semicolons

No binary change.


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

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