diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/dnsjava/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/dnsjava/files')
-rw-r--r-- | dev-java/dnsjava/files/2.1.6-no-network-tests.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-java/dnsjava/files/2.1.6-no-network-tests.patch b/dev-java/dnsjava/files/2.1.6-no-network-tests.patch new file mode 100644 index 000000000000..1ea9d3929db0 --- /dev/null +++ b/dev-java/dnsjava/files/2.1.6-no-network-tests.patch @@ -0,0 +1,44 @@ +diff --git a/dnsjava-2.1.6/tests/org/xbill/DNS/AddressTest.java b/dnsjava-2.1.6/tests/org/xbill/DNS/AddressTest.java +index 451b262..7ce8029 100644 +--- a/dnsjava-2.1.6/tests/org/xbill/DNS/AddressTest.java ++++ b/dnsjava-2.1.6/tests/org/xbill/DNS/AddressTest.java +@@ -272,16 +272,19 @@ public class AddressTest extends TestCase + + public void test_getByName() throws UnknownHostException + { ++/* + InetAddress out = Address.getByName("128.145.198.231"); + assertEquals("128.145.198.231", out.getHostAddress()); + + out = Address.getByName("serl.cs.colorado.edu"); + assertEquals("epic.cs.colorado.edu", out.getCanonicalHostName()); + assertEquals("128.138.201.71", out.getHostAddress()); ++*/ + } + + public void test_getByName_invalid() throws UnknownHostException + { ++/* + try { + Address.getByName("example.invalid"); + fail("UnknownHostException not thrown"); +@@ -294,10 +297,12 @@ public class AddressTest extends TestCase + } + catch( UnknownHostException e ){ + } ++*/ + } + + public void test_getAllByName() throws UnknownHostException + { ++/* + InetAddress[] out = Address.getAllByName("128.145.198.231"); + assertEquals(1, out.length); + assertEquals("128.145.198.231", out[0].getHostAddress()); +@@ -353,5 +358,6 @@ public class AddressTest extends TestCase + } + catch( UnknownHostException e ){ + } ++*/ + } + } |