Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 2201 invoked from network); 27 Nov 2006 12:33:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2006 12:33:12 -0000 Received: (qmail 66987 invoked by uid 500); 27 Nov 2006 12:33:21 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 66949 invoked by uid 500); 27 Nov 2006 12:33:20 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 66940 invoked by uid 99); 27 Nov 2006 12:33:20 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 04:33:20 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 44F897142E4 for ; Mon, 27 Nov 2006 04:31:28 -0800 (PST) Message-ID: <19787756.1164630688279.JavaMail.jira@brutus> Date: Mon, 27 Nov 2006 04:31:28 -0800 (PST) From: "Tony Wu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2270) [classlib][unit] tests.api.java.io.FileTest@test_mkdir failes on win XP In-Reply-To: <6677174.1164211382043.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-2270?page=comments#action_12453571 ] Tony Wu commented on HARMONY-2270: ---------------------------------- Hi, I revert my previous patch(2157) and it passed. I'll follow this bug, Thanks for pointing out it. > [classlib][unit] tests.api.java.io.FileTest@test_mkdir failes on win XP > ----------------------------------------------------------------------- > > Key: HARMONY-2270 > URL: http://issues.apache.org/jira/browse/HARMONY-2270 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: win XP > Reporter: tatyana doubtsova > > tests.api.java.io.FileTest@test_mkdir failes on win XP: > mkdir 257 failed > junit.framework.AssertionFailedError: mkdir 257 failed at tests.api.java.io.FileTest.test_mkdir(FileTest.java:1811) at java.lang.reflect.VMReflection.invokeMethod(Native Method) > To get more information run stand alone test: > import java.io.*; > public class Test2 { > public static void main(String[] args) throws IOException { > // Test for method boolean java.io.File.mkdir() > String base = System.getProperty("user.dir"); > int dirNumber = 1; > boolean dirExists = true; > File dir = new File(base, String.valueOf(dirNumber)); > while (dirExists) { > if (dir.exists()) { > dirNumber++; > dir = new File(base, String.valueOf(dirNumber)); > } else { > dirExists = false; > } > } > if (!dir.mkdir() && dir.exists()) System.out.println("mkdir failed"); > else System.out.println("PASSED_1"); > > dir.deleteOnExit(); > > StringBuilder sb = new StringBuilder(dir + File.separator); > while (dir.getCanonicalPath().length() < 256) { > sb.append(0); > dir = new File(sb.toString()); > if (!dir.mkdir() && dir.exists()) System.out.println("mkdir " + dir.getCanonicalPath().length() + " failed"); > else System.out.println("PASSED_2"); > dir.deleteOnExit(); > } > } > } > $ /cygdrive//win_ia32_msvc_debug/deploy/jre/bin/java Test2 -showversion > PASSED_1 > PASSED_2 > ........... > PASSED_2 > PASSED_2 > An unhandled error (4) has occurred. > HyGeneric_Signal_Number=00000004 > ExceptionCode=c0000005 > ExceptionAddress=7C911E5A > ContextFlags=0001003f > Handler1=00401010 > Handler2=11105D80 > InaccessibleAddress=00000004 > EDI=00164B58 > ESI=001634B0 > EAX=001634B8 > EBX=00150000 > ECX=001634CC > EDX=00000000 > EIP=7C911E5A > ESP=0013F638 > EBP=0013F644 > Module=C:\WINDOWS\system32\ntdll.dll > Module_base_address=7C900000 > Offset_in_DLL=00011e5a > This application has requested the Runtime to terminate it in an unusual way. > Please contact the application's support team for more information. > $ > The debug shows the problem is in nt_exception_filter.cpp > While iterative run of luni module with -Dhy.test.forkmode=perTest tests.api.java.io.FileTest@test_mkdir fails 50 times out of 50. > The stand alone code fails from time to time on win XP -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira