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

Bug 452508

Summary: SiriusTestCase.cleanWorkspace() fails to delete all the projects on Mac OS X
Product: [Modeling] Sirius Reporter: Maxime Porhel <maxime.porhel>
Component: CoreAssignee: Maxime Porhel <maxime.porhel>
Status: CLOSED FIXED QA Contact: Belqassim Djafer <belqassim.djafer>
Severity: normal    
Priority: P3 CC: belqassim.djafer
Version: 2.0.0Keywords: triaged
Target Milestone: 3.0.0M4   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Maxime Porhel CLA 2014-11-20 09:38:24 EST
org.eclipse.sirius.tests.support.api.SiriusTestCase.cleanWorkspace() fails to delete all the projects in workspace. 

This is due to FragmentedFilesMigrationTest which set some files to read only. But on Mac OS, this also make them immutable (see Bug 254444). The test class has revert the state of the impacted files to let Sirius clean the workspace and avoid to make the test (and the followings one) fail.
Comment 1 Maxime Porhel CLA 2014-11-20 09:42:00 EST
We could also improve org.eclipse.sirius.tests.support.api.SiriusTestCase.cleanWorkspace() and org.eclipse.sirius.tests.swtbot.support.api.business.UIPerspective.deleteProject(String) to find all read only files and modify their readOnly attribute before delete.
Comment 2 Maxime Porhel CLA 2014-11-20 09:50:43 EST
setReadOnly(true) is also called in: 
 . oest.swtbot.FileModificationValidationTest.testFileModificationValidationReadOnly()
 . org.eclipse.sirius.tests.support.api.SiriusDiagramTestCase.setReadOnly(IFile)
Comment 3 Maxime Porhel CLA 2014-11-25 09:54:52 EST
Issue corrected by commit 76b9bdd9b627faed6ba77a679b869a4d2d26a02d
Comment 4 Belqassim Djafer CLA 2015-04-08 11:33:02 EDT
Verified as technical issue
Comment 5 Pierre-Charles David CLA 2015-06-24 11:15:37 EDT
Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0.