summaryrefslogtreecommitdiffstats
path: root/Tests/BundleUtilities/bundleutils.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2011-05-31 19:17:01 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-05-31 19:33:39 (GMT)
commitfa4dc08a1a69d0766cb17b03f1e3154e2dd0c0e7 (patch)
tree0406144e16a6c284dc2de90328b606448269d61f /Tests/BundleUtilities/bundleutils.cmake
parente40b79e79fc0beb0a71889817f21bf196a892b09 (diff)
downloadCMake-fa4dc08a1a69d0766cb17b03f1e3154e2dd0c0e7.zip
CMake-fa4dc08a1a69d0766cb17b03f1e3154e2dd0c0e7.tar.gz
CMake-fa4dc08a1a69d0766cb17b03f1e3154e2dd0c0e7.tar.bz2
BundleUtilities: Fix issues with custom target DEPENDS in test (#12034)
Diffstat (limited to 'Tests/BundleUtilities/bundleutils.cmake')
-rw-r--r--Tests/BundleUtilities/bundleutils.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/BundleUtilities/bundleutils.cmake b/Tests/BundleUtilities/bundleutils.cmake
index 4df2f2d..46765e7 100644
--- a/Tests/BundleUtilities/bundleutils.cmake
+++ b/Tests/BundleUtilities/bundleutils.cmake
@@ -37,8 +37,9 @@ include(BundleUtilities)
fixup_bundle("${OUTPUT}" "${OUTPUT_MODULE}" "${INPUTDIR}")
# make sure we can run the app
-execute_process(COMMAND "${OUTPUT}" RESULT_VARIABLE result WORKING_DIRECTORY "${EXE_DIR}")
+message("Executing ${OUTPUT} in ${EXE_DIR}")
+execute_process(COMMAND "${OUTPUT}" RESULT_VARIABLE result OUTPUT_VARIABLE out ERROR_VARIABLE out WORKING_DIRECTORY "${EXE_DIR}")
if(NOT result STREQUAL "0")
- message(FATAL_ERROR " failed to execute test program")
+ message(FATAL_ERROR " failed to execute test program\n${out}")
endif(NOT result STREQUAL "0")