Improve error output of native tests

This commit is contained in:
Peter Palaga
2020-06-21 13:45:46 +02:00
parent 7ff21ed8c6
commit 2ec9a49857

View File

@@ -120,11 +120,11 @@ public class NativeTestClient implements Client {
if (exitCode == TIMEOUT_EXIT_CODE) {
sb.append(" (timeout)");
}
sb.append("--- stderr+stdout start ---");
sb.append("\n--- stderr+stdout start ---");
synchronized (log) {
log.stream().forEach(s -> sb.append('\n').append(s));
}
sb.append("--- stderr+stdout end ---");
sb.append("\n--- stderr+stdout end ---");
throw new AssertionError(sb);
}
return this;