public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: More SocketPermission tests
@ 2006-09-07 10:01 Gary Benson
  0 siblings, 0 replies; only message in thread
From: Gary Benson @ 2006-09-07 10:01 UTC (permalink / raw)
  To: mauve-patches

[-- Attachment #1: Type: text/plain, Size: 52 bytes --]

Every day I find a new way to write IP addresses...

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 1619 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.1906
diff -u -r1.1906 ChangeLog
--- ChangeLog	6 Sep 2006 16:00:32 -0000	1.1906
+++ ChangeLog	7 Sep 2006 08:38:36 -0000
@@ -1,3 +1,7 @@
+2006-09-06  Gary Benson  <gbenson@redhat.com>
+
+	* gnu/testlet/java/net/SocketPermission/implies.java: More tests.
+
 2006-09-06  Francis Kung  <fkung@redhat.com>
 
 	* gnu/testlet/java/awt/image/RescaleOp/constructors.java,
Index: gnu/testlet/java/net/SocketPermission/implies.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/SocketPermission/implies.java,v
retrieving revision 1.6
diff -u -r1.6 implies.java
--- gnu/testlet/java/net/SocketPermission/implies.java	6 Sep 2006 12:04:37 -0000	1.6
+++ gnu/testlet/java/net/SocketPermission/implies.java	7 Sep 2006 08:38:36 -0000
@@ -110,6 +110,16 @@
     new Test("13.1.68.3", "[::13.1.68.3]", false),
     new Test("[::D01:4403]", "13.1.68.3", false),
     new Test("13.1.68.3", "[::D01:4403]", false),
+    // Unconventional IPv4 addresses
+    new Test("13.1.68.3", "13.1.17411", true),
+    new Test("13.1.17411", "13.1.68.3", true),
+    new Test("13.1.68.3", "13.82947", true),
+    new Test("13.82947", "13.1.68.3", true),
+    new Test("13.1.68.3", "13.82947", true),
+    new Test("13.1.68.3",
+	     String.valueOf((13 << 24) + (1 << 16) + (68 << 8) + 3), true),
+    new Test(String.valueOf((13 << 24) + (1 << 16) + (68 << 8) + 3),
+	     "13.1.68.3", true),
   };
 
   private Test[] ports = new Test[] {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-07 10:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-07 10:01 FYI: More SocketPermission tests Gary Benson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).