* Patch: SocketTest
@ 2004-07-23 10:39 Jeroen Frijters
0 siblings, 0 replies; only message in thread
From: Jeroen Frijters @ 2004-07-23 10:39 UTC (permalink / raw)
To: mauve-discuss
[-- Attachment #1: Type: text/plain, Size: 137 bytes --]
Hi,
Attached patch "fixes" the reverse lookup bug that has been plaguing
this test.
Please apply.
Thanks.
Regards,
Jeroen
[-- Attachment #2: SocketTest.patch --]
[-- Type: application/octet-stream, Size: 1573 bytes --]
Index: gnu/testlet/java/net/Socket/SocketTest.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/Socket/SocketTest.java,v
retrieving revision 1.20
diff -u -r1.20 SocketTest.java
--- gnu/testlet/java/net/Socket/SocketTest.java 3 May 2004 03:21:15 -0000 1.20
+++ gnu/testlet/java/net/Socket/SocketTest.java 23 Jul 2004 10:36:40 -0000
@@ -194,6 +194,7 @@
public void test_params()
{
String host = "mx10.gnu.org";
+ String hostalt = "mail.gnu.org";
int port = 25;
harness.checkPoint("params");
@@ -240,11 +241,15 @@
harness.debug("sock.getInetAddress().toString(): " +
sock.getInetAddress().toString());
- harness.check(sock.getInetAddress().toString().indexOf(host) != -1,
- "getInetAddress().toString() should contain host " + host);
+ harness.check(sock.getInetAddress().toString().indexOf(host) != -1 ||
+ sock.getInetAddress().toString().indexOf(hostalt) != -1,
+ "getInetAddress().toString() should contain host " +
+ host + " or " + hostalt);
harness.debug("sock.toString(): " + sock.toString());
- harness.check(sock.toString().indexOf(host) != -1,
- "toString() should contain host " + host);
+ harness.check(sock.toString().indexOf(host) != -1 ||
+ sock.toString().indexOf(hostalt) != -1,
+ "toString() should contain host " + host + " or " +
+ hostalt);
}
catch (Exception e) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-23 10:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-23 10:39 Patch: SocketTest Jeroen Frijters
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).