From 7aa74b296aa4387c24bef721d26e90efc81465df Mon Sep 17 00:00:00 2001 From: Michal Karm Babacek Date: Wed, 20 Jan 2021 11:56:54 +0100 Subject: [PATCH] Logging fo debug images swapped --- .../tests/integration/AppReproducersTest.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/testsuite/src/it/java/org/graalvm/tests/integration/AppReproducersTest.java b/testsuite/src/it/java/org/graalvm/tests/integration/AppReproducersTest.java index f97cd3d8..e5245e0c 100644 --- a/testsuite/src/it/java/org/graalvm/tests/integration/AppReproducersTest.java +++ b/testsuite/src/it/java/org/graalvm/tests/integration/AppReproducersTest.java @@ -415,13 +415,13 @@ public void debugSymbolsSmokeGDB(TestInfo testInfo) throws IOException, Interrup esvc.submit(reader); try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(process.getOutputStream()))) { + Logs.appendln(report, appDir.getAbsolutePath()); + Logs.appendlnSection(report, String.join(" ", processBuilder.command())); + Logs.appendln(report, stringBuffer.toString()); assertTrue(waitForBufferToMatch(stringBuffer, Pattern.compile(".*Reading symbols from \\./target/debug-symbols-smoke\\.\\.\\.done\\..*", Pattern.DOTALL), 3000, 500, TimeUnit.MILLISECONDS), "GDB session did not start well. Check the names, paths... Content was: " + stringBuffer.toString()); - Logs.appendln(report, appDir.getAbsolutePath()); - Logs.appendlnSection(report, String.join(" ", processBuilder.command())); - Logs.appendln(report, stringBuffer.toString()); carryOutGDBSession(stringBuffer, GDBSession.DEBUG_SYMBOLS_SMOKE, esvc, writer, report); @@ -479,13 +479,13 @@ public void debugSymbolsQuarkus(TestInfo testInfo) throws IOException, Interrupt esvc.submit(reader); try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(process.getOutputStream()))) { + Logs.appendln(report, appDir.getAbsolutePath()); + Logs.appendlnSection(report, String.join(" ", processBuilder.command())); + Logs.appendln(report, stringBuffer.toString()); assertTrue(waitForBufferToMatch(stringBuffer, Pattern.compile(".*Reading symbols from.*quarkus-runner.debug.*done.*", Pattern.DOTALL), 3000, 500, TimeUnit.MILLISECONDS), "GDB session did not start well. Check the names, paths... Content was: " + stringBuffer.toString()); - Logs.appendln(report, appDir.getAbsolutePath()); - Logs.appendlnSection(report, String.join(" ", processBuilder.command())); - Logs.appendln(report, stringBuffer.toString()); writer.write("set confirm off\n"); writer.flush(); @@ -557,13 +557,13 @@ public void debugSymbolsQuarkusContainer(TestInfo testInfo) throws IOException, esvc.submit(reader); try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(gdbProcess.getOutputStream()))) { + Logs.appendln(report, appDir.getAbsolutePath()); + Logs.appendlnSection(report, String.join(" ", processBuilder.command())); + Logs.appendln(report, stringBuffer.toString()); assertTrue(waitForBufferToMatch(stringBuffer, Pattern.compile(".*Reading symbols from.*/work/quarkus-runner.debug.*done.*", Pattern.DOTALL), 3000, 500, TimeUnit.MILLISECONDS), "GDB session did not start well. Check the names, paths... Content was: " + stringBuffer.toString()); - Logs.appendln(report, appDir.getAbsolutePath()); - Logs.appendlnSection(report, String.join(" ", processBuilder.command())); - Logs.appendln(report, stringBuffer.toString()); writer.write("set confirm off\n"); writer.flush();