Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 187978 Details for
Bug 335864
ResourceAttributeTest fails on Windows 7 due to running "ln"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch fixing the issue
win7_resattr.diff.txt (text/plain), 2.19 KB, created by
Martin Oberhuber
on 2011-01-31 11:17:57 EST
(
hide
)
Description:
Patch fixing the issue
Filename:
MIME Type:
Creator:
Martin Oberhuber
Created:
2011-01-31 11:17:57 EST
Size:
2.19 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.core.tests.resources >Index: src/org/eclipse/core/tests/resources/ResourceAttributeTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/ResourceAttributeTest.java,v >retrieving revision 1.13 >diff -u -r1.13 ResourceAttributeTest.java >--- src/org/eclipse/core/tests/resources/ResourceAttributeTest.java 20 May 2009 23:50:56 -0000 1.13 >+++ src/org/eclipse/core/tests/resources/ResourceAttributeTest.java 31 Jan 2011 16:17:12 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2005, 2007 IBM Corporation and others. >+ * Copyright (c) 2005, 2011 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -7,6 +7,7 @@ > * > * Contributors: > * IBM Corporation - initial API and implementation >+ * Martin Oberhuber (Wind River) - [335864] ResourceAttributeTest fails on Win7 > *******************************************************************************/ > package org.eclipse.core.tests.resources; > >@@ -302,7 +303,7 @@ > > // create a link to the target file and add it to the workspace, > // the resource in the workspace should have symbolic link attribute set >- mkLink(project.getLocation().toFile(), "link", "target"); >+ createSymLink(project.getLocation().toFile(), "link", "target", false); > ensureExistsInWorkspace(link, true); > assertTrue("5.0", link.getResourceAttributes().isSymbolicLink()); > >@@ -335,19 +336,4 @@ > fail("7.0", e); > } > } >- >- private void mkLink(java.io.File basedir, String src, String tgt) { >- String[] envp = {}; >- try { >- Process p; >- String[] cmd = {"ln", "-s", tgt, src}; >- p = Runtime.getRuntime().exec(cmd, envp, basedir); >- int exitcode = p.waitFor(); >- assertEquals(exitcode, 0); >- } catch (IOException e) { >- fail("mkLink", e); >- } catch (InterruptedException e) { >- fail("mkLink", e); >- } >- } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 335864
: 187978 |
187987
|
187988
|
187993