in junit-platform-engine/src/main/java/org/junit/platform/engine/support/hierarchical/ThrowableCollector.java [88:102]
private void add(Throwable t) {
Preconditions.notNull(t, "Throwable must not be null");
if (this.throwable == null) {
this.throwable = t;
}
else if (hasAbortedExecution(this.throwable) && !hasAbortedExecution(t)) {
t.addSuppressed(this.throwable);
this.throwable = t;
}
else if (throwable != t) {
// Jupiter does not throw the same Throwable from Node.after() anymore but other engines might
this.throwable.addSuppressed(t);
}
}