mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
some logging for mysteriously failing tests
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.util.xml.impl;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.openapi.util.Key;
|
||||
@@ -68,7 +69,11 @@ class FileDescriptionCachedValueProvider<T extends DomElement> implements SemEle
|
||||
public final DomFileElementImpl<T> getFileElement() {
|
||||
if (myComputed) return myLastResult;
|
||||
|
||||
DomFileElementImpl<T> result = _computeFileElement(false, getRootTag(), null);
|
||||
final StringBuilder log = ApplicationManager.getApplication().isUnitTestMode() ? new StringBuilder() : null;
|
||||
DomFileElementImpl<T> result = _computeFileElement(false, getRootTag(), log);
|
||||
if (log != null && result == null) {
|
||||
System.out.println(log);
|
||||
}
|
||||
|
||||
synchronized (myCondition) {
|
||||
if (myComputed) return myLastResult;
|
||||
|
||||
Reference in New Issue
Block a user