From 3f00594313f45a085a3aaefff62ae5b32add96ec Mon Sep 17 00:00:00 2001 From: parrt Date: Wed, 14 Dec 2016 11:22:47 -0800 Subject: [PATCH] add debugging to C++ --- .../org/antlr/v4/test/runtime/cpp/BaseCppTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/runtime-testsuite/test/org/antlr/v4/test/runtime/cpp/BaseCppTest.java b/runtime-testsuite/test/org/antlr/v4/test/runtime/cpp/BaseCppTest.java index 9673414e4..84ed8a2fd 100644 --- a/runtime-testsuite/test/org/antlr/v4/test/runtime/cpp/BaseCppTest.java +++ b/runtime-testsuite/test/org/antlr/v4/test/runtime/cpp/BaseCppTest.java @@ -550,7 +550,7 @@ public class BaseCppTest implements RuntimeTestSupport { try { String command[] = { "cmake", ".", /*"-DCMAKE_CXX_COMPILER=clang++",*/ "-DCMAKE_BUILD_TYPE=release" }; - if (runCommand(command, runtimePath, "antlr runtime cmake", true) == null) { + if (runCommand(command, runtimePath, "antlr runtime cmake", false) == null) { return false; } } @@ -565,6 +565,14 @@ public class BaseCppTest implements RuntimeTestSupport { } catch (Exception e) { System.err.println("can't compile antlr cpp runtime"); + try { + String command[] = { "ls", "-la" }; + String output = runCommand(command, runtimePath + "/dist/", "printing library folder content", true); + System.out.println(output); + } + catch (Exception e2) { + System.err.println("can't even list folder content"); + } } /* for debugging