Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/inet add tests for PR/57046.



details:   https://anonhg.NetBSD.org/src/rev/0cd151155609
branches:  trunk
changeset: 371753:0cd151155609
user:      ryo <ryo%NetBSD.org@localhost>
date:      Thu Oct 06 06:05:31 2022 +0000

description:
add tests for PR/57046.

diffstat:

 tests/lib/libc/inet/t_inet_network.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 137fba8a0496 -r 0cd151155609 tests/lib/libc/inet/t_inet_network.c
--- a/tests/lib/libc/inet/t_inet_network.c      Thu Oct 06 06:03:06 2022 +0000
+++ b/tests/lib/libc/inet/t_inet_network.c      Thu Oct 06 06:05:31 2022 +0000
@@ -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 <sys/cdefs.h>
 __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 <arpa/inet.h>
 
@@ -92,6 +92,9 @@
                0xffffffff);
        H_REQUIRE("255.255.255.255", 0xffffffff);
        H_REQUIRE("x", 0xffffffff);
+       H_REQUIRE("x1", 0xffffffff);
+       H_REQUIRE("xab", 0xffffffff);
+       H_REQUIRE("x100", 0xffffffff);
        H_REQUIRE("078", 0xffffffff);
        H_REQUIRE("127.0xfff", 0xffffffff);
 }



Home | Main Index | Thread Index | Old Index