summaryrefslogtreecommitdiffstats
path: root/test/run.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-31 14:42:28 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-31 14:43:14 (GMT)
commitc224a7968998ff627a2dcc3ab41f907c5f8541b0 (patch)
tree4de27519b0c52e864f36f6f7e70b5134e74666f5 /test/run.cmake
parente6c50d92b67a0795363abf5f7b99685a7fa528ad (diff)
downloadCastXML-c224a7968998ff627a2dcc3ab41f907c5f8541b0.zip
CastXML-c224a7968998ff627a2dcc3ab41f907c5f8541b0.tar.gz
CastXML-c224a7968998ff627a2dcc3ab41f907c5f8541b0.tar.bz2
test: Print command line string when a test fails
This will make it easy to re-run the command by hand for debugging.
Diffstat (limited to 'test/run.cmake')
-rw-r--r--test/run.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/run.cmake b/test/run.cmake
index 57822cd..5e1c55b 100644
--- a/test/run.cmake
+++ b/test/run.cmake
@@ -73,6 +73,8 @@ foreach(o result stdout stderr ${maybe_xml})
endforeach()
if(msg)
+ string(REPLACE ";" "\" \"" command_string "\"${command}\"")
+ set(msg "${msg}Command was:\n command> ${command_string}\n")
message(SEND_ERROR
"${msg}"
"${expect-result}"