Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 45785 invoked from network); 20 Apr 2009 08:41:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Apr 2009 08:41:54 -0000 Received: (qmail 48455 invoked by uid 500); 20 Apr 2009 08:41:53 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 48362 invoked by uid 500); 20 Apr 2009 08:41:53 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 48351 invoked by uid 99); 20 Apr 2009 08:41:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2009 08:41:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of t.p.ellison@gmail.com designates 209.85.221.121 as permitted sender) Received: from [209.85.221.121] (HELO mail-qy0-f121.google.com) (209.85.221.121) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2009 08:41:45 +0000 Received: by qyk27 with SMTP id 27so3736742qyk.20 for ; Mon, 20 Apr 2009 01:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=JKIdxoYm4cbNFvkz782M4z72OYIiK1qyitcTEv5UecA=; b=nRaT0ricQU8wRijUm3TXn9QX0FdmcZ3WFoED7jV+wLONq3pYYKTUmcaG5F104Y3Z9o qTvCVAQZ4HZBUGcsKKOLv48w/27M90jdKLSnfSLnpaYLkSJYCfNcwGfEHDAWq06oY8YS Ug+1E6Vk6owXTyGn1PxyfTLAivg0Fj283hTMc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=PB6cN985ohcOmQFqwmEG7vEDwumRr6jRjd5MqWSiTn9yEwVFqgiRRvMd2JEFQZ/nyw y1RMi0Cl0Y8PMzkh8+BWJo1Gx6/kg+IfIGG8UD1IXp0KQzADFJ2z5xEK8RRI451V2kzb RNZNWxK5HCrN7JdX7FZ61bBaEDzzntH5bze2Q= Received: by 10.220.73.6 with SMTP id o6mr5491641vcj.49.1240216883610; Mon, 20 Apr 2009 01:41:23 -0700 (PDT) Received: from ?9.20.183.198? (blueice4n2.uk.ibm.com [195.212.29.92]) by mx.google.com with ESMTPS id 6sm5985473ywn.52.2009.04.20.01.41.22 (version=SSLv3 cipher=RC4-MD5); Mon, 20 Apr 2009 01:41:23 -0700 (PDT) Message-ID: <49EC3531.5060201@gmail.com> Date: Mon, 20 Apr 2009 09:41:21 +0100 From: Tim Ellison User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: [test] Platform spcific tests (was: Re: svn commit: r765837 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java) References: <20090417023601.A75FC23889DE@eris.apache.org> <49E85955.6060605@gmail.com> <49E85D0A.4080700@gmail.com> <49EA38A0.8010305@gmail.com> <49EBE8BC.9050608@gmail.com> In-Reply-To: <49EBE8BC.9050608@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Regis wrote: > Tim Ellison wrote: >> Regis wrote: >>> RI has the different behaviors on Linux and Windows in this test case, >>> and Harmony has the exactly the same behaviors, so I think our >>> implementation is OK. >>> >>> And there are some other similar cases in SocketTest, which failed on >>> Linux but passed on Windows, I think it's why it is in >>> exclude.linux.x86.drl. If we fixed them, SocketTest could be moved from >>> exclude list. >> >> It wasn't the fact that there is a difference that I object to here, but >> the way you have achieved it does not fit in the Harmony architecture. >> >> These types of differences are pushed into the native code. I believe >> that this should be done here too. > > Our tests are all written in java, I think it's better to keep it. How > about move these platform depended tests to platform directory, like > UnixSocketTest or WinSocketTest? D'oh, sorry, I had missed that they are tests! The platform specific tests are sorted into directories under src/test/api (Java API-based tests) or src/test/impl (Harmony impl types tests) The test you modified is in src/test/api/common but if it is platform specific, the relevant parts of the test should be in one of src/test/api/windows or src/test/api/unix Does that make sense? Regards, Tim