From c224a7968998ff627a2dcc3ab41f907c5f8541b0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 31 Mar 2015 10:42:28 -0400 Subject: test: Print command line string when a test fails This will make it easy to re-run the command by hand for debugging. --- test/run.cmake | 2 ++ 1 file changed, 2 insertions(+) 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}" -- cgit v0.12