Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336659

Summary: org.eclipse.core.tests.resources.regression.Bug_233939.testBug tries to run mklink on windows 7 test machine
Product: [Eclipse Project] Platform Reporter: Kim Moir <kim.moir>
Component: ResourcesAssignee: Szymon Brandys <Szymon.Brandys>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 295393    

Description Kim Moir CLA 2011-02-08 16:32:50 EST
See

https://hudson.eclipse.org/hudson/view/Eclipse%20and%20Equinox/job/JUnit-win/166/testReport/junit/org.eclipse.core.tests.resources.regression/Bug_233939/testBug/

Error Message

createSymLink: java.io.IOException: Cannot run program "mklink" (in directory "C:\hb\workspace\JUnit-win\ws\2011-02-07_19-58-38\eclipse-testing\test-eclipse\eclipse\core_resources_sniff_folder\00576a38233300101342d9aa204f5959"): CreateProcess error=2, The system cannot find the file specified

Stacktrace

junit.framework.AssertionFailedError: createSymLink: java.io.IOException: Cannot run program "mklink" (in directory "C:\hb\workspace\JUnit-win\ws\2011-02-07_19-58-38\eclipse-testing\test-eclipse\eclipse\core_resources_sniff_folder\00576a38233300101342d9aa204f5959"): CreateProcess error=2, The system cannot find the file specified
	at org.eclipse.core.tests.harness.CoreTest.fail(CoreTest.java:63)
	at org.eclipse.core.tests.harness.CoreTest.createSymLink(CoreTest.java:228)
	at org.eclipse.core.tests.resources.regression.Bug_233939.symLinkAndRefresh(Bug_233939.java:48)
	at org.eclipse.core.tests.resources.regression.Bug_233939.testBug(Bug_233939.java:92)
	at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:416)
	at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:249)
	at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:36)
	at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:32)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
	at org.eclipse.core.launcher.Main.main(Main.java:34)
Caused by: java.io.IOException: Cannot run program "mklink" (in directory "C:\hb\workspace\JUnit-win\ws\2011-02-07_19-58-38\eclipse-testing\test-eclipse\eclipse\core_resources_sniff_folder\00576a38233300101342d9aa204f5959"): CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
	at java.lang.Runtime.exec(Runtime.java:593)
	at org.eclipse.core.tests.harness.CoreTest.createSymLink(CoreTest.java:219)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
	at java.lang.ProcessImpl.start(ProcessImpl.java:30)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
Comment 1 Szymon Brandys CLA 2011-02-09 08:07:09 EST
Looks similar to Bug 331716.
Comment 2 Szymon Brandys CLA 2011-03-21 08:26:28 EDT
.

*** This bug has been marked as a duplicate of bug 335864 ***
Comment 3 Szymon Brandys CLA 2011-03-21 08:27:28 EDT
.

*** This bug has been marked as a duplicate of bug 331716 ***