Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 51354 invoked from network); 4 Apr 2010 21:28:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Apr 2010 21:28:58 -0000 Received: (qmail 69082 invoked by uid 500); 4 Apr 2010 21:28:58 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 68975 invoked by uid 500); 4 Apr 2010 21:28:57 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 68968 invoked by uid 99); 4 Apr 2010 21:28:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Apr 2010 21:28:57 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brian.havard@gmail.com designates 209.85.218.216 as permitted sender) Received: from [209.85.218.216] (HELO mail-bw0-f216.google.com) (209.85.218.216) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Apr 2010 21:28:49 +0000 Received: by bwz8 with SMTP id 8so2650276bwz.3 for ; Sun, 04 Apr 2010 14:28:28 -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:x-enigmail-version:content-type :content-transfer-encoding; bh=cRxbkJfDNtHqYmv/ch1G6voq6r/VsK0g1PZ6/SX31Fs=; b=eADcB3mFGv9K94ESk+yoPCTYckrGHvAoAWqgi4bJe37pWfFAQffPK/h/8YKeKFpuPz SV3akgjjrlu5rkMYU0cVvE848uHoLE/69TDsXVxPJGQu+gFwMnC5XLxe9bmhI+x1IyMp zW9Is0NB6emAa75XxrPaLWW2raYBvRjJti/MQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=NCyf45yfMPVexMU94FC0oi6c5C7qkWhCTpvxYUCddBzwpZmUI/yXLjkpfjQUQvXyGX gQ9YKdYr6n+qWP22oFDB3lYyPvYr+PKfwNk+Ju+9LtpCnq6Rz+uNSEL/8NuHMThuQe9Y ak4QhHxsc1F7HJwGdgaUEAVEAb+qTrhAoPzu8= Received: by 10.204.83.132 with SMTP id f4mr6104855bkl.73.1270416508467; Sun, 04 Apr 2010 14:28:28 -0700 (PDT) Received: from [192.168.1.1] (93-97-192-116.zone5.bethere.co.uk [93.97.192.116]) by mx.google.com with ESMTPS id d5sm99750408bkd.19.2010.04.04.14.28.27 (version=SSLv3 cipher=RC4-MD5); Sun, 04 Apr 2010 14:28:27 -0700 (PDT) Message-ID: <4BB903D1.5030607@gmail.com> Date: Sun, 04 Apr 2010 22:25:37 +0100 From: Brian Havard User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: dev@apr.apache.org Subject: Test suit oddities X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I've been working my way through the test suit on OS/2 and have hit a couple of oddities where I think the test needs to be changed. - testdso: test_unload_library() closes the library with apr_dso_unload() and then expects apr_dso_sym() to return APR_ESYMNOTFOUND. WTF? That's like expecting read() to return EOF on a closed handle. Surely something like EBADF would be more appropriate. I had a look at the unix implementation and I can see why it passes, it returns APR_ESYMNOTFOUND for every single failure! I'd suggest just testing for != APR_SUCCESS. - testcond: nested_wait() creates a thread that exits while owning a mutex and then tries to lock that mutex, expecting the result to be EBUSY. On OS/2, when a thread exits while owning a mutex, that mutex has an indeterminate state and any attempt to lock it returns ERROR_SEM_OWNER_DIED. I don't see any problem with this behaviour so would anyone object to me changing the test so that the owning thread stays alive long enough for the primary thread to do its apr_thread_mutex_trylock()?