From: "Jeroen Frijters" <jeroen@sumatra.nl>
To: <mauve-discuss@sources.redhat.com>
Subject: Patch: SocketTest
Date: Fri, 23 Jul 2004 10:39:00 -0000 [thread overview]
Message-ID: <788B535AB1F9CB49BB9C229372B50ACC10CE77@LEMBU.sumatrasoftware.com> (raw)
[-- 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) {
reply other threads:[~2004-07-23 10:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=788B535AB1F9CB49BB9C229372B50ACC10CE77@LEMBU.sumatrasoftware.com \
--to=jeroen@sumatra.nl \
--cc=mauve-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).