Bug 563139

Summary: IContentTypeManagerTest.testContentDetection fails since I20200512-1800 on all platforms
Product: [Eclipse Project] Platform Reporter: Andrey Loskutov <loskutov>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mistria, thatnitind
Version: 4.16Keywords: regression
Target Milestone: 4.16 M3   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=251786
Whiteboard:

Description Andrey Loskutov CLA 2020-05-13 14:06:00 EDT
https://download.eclipse.org/eclipse/downloads/drops4/I20200512-1800/testresults/html/org.eclipse.core.tests.resources_ep416I-unit-cen64-gtk3-java8_linux.gtk.x86_64_8.0.html

3.0 expected:<org.eclipse.core.tests.resources.xml-based-different-extension> but was:<org.eclipse.core.runtime.xml>

java.lang.AssertionError: 3.0 expected:<org.eclipse.core.tests.resources.xml-based-different-extension> but was:<org.eclipse.core.runtime.xml>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotEquals(Assert.java:835)
at org.junit.Assert.assertEquals(Assert.java:120)
at org.eclipse.core.tests.resources.content.IContentTypeManagerTest.testContentDetection(IContentTypeManagerTest.java:643)
Comment 1 Andrey Loskutov CLA 2020-05-13 14:08:06 EDT
Probably regression from bug 251786.
Comment 2 Mickael Istria CLA 2020-05-14 03:22:09 EDT
@Nitin: can you look at this test here? Maybe it's just a "bad" test to fix as well.
If we cannot find a solution soon enough, we'll need to revert the patch for bug 251786 before M3 (next week).
Comment 3 Nitin Dahyabhai CLA 2020-05-14 13:31:04 EDT
(In reply to Mickael Istria from comment #2)
The test looks like it's doing something important--or at least it's a valid case to not have a content description there. Please revert the change.
Comment 4 Mickael Istria CLA 2020-05-14 14:43:44 EDT
Faulty patch was reverted