You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2007/03/22 07:19:32 UTC

[jira] Resolved: (HARMONY-2270) [classlib][unit] tests.api.java.io.FileTest@test_mkdir failes on win XP

     [ https://issues.apache.org/jira/browse/HARMONY-2270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paulex Yang resolved HARMONY-2270.
----------------------------------

    Resolution: Fixed

Seems it cannot reproduce after HARMONY-2157 is fixed. 

Tatyana, would you please to verify?

> [classlib][unit] tests.api.java.io.FileTest@test_mkdir failes on win XP
> -----------------------------------------------------------------------
>
>                 Key: HARMONY-2270
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2270
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: win XP
>            Reporter: tatyana doubtsova
>         Assigned To: Paulex Yang
>         Attachments: harmony-2270-28Nov.diff, harmony-2270-test.diff, harmony-2270.diff
>
>
> 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/<path to jre>/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.
-
You can reply to this email to add a comment to the issue online.