Jelajahi Sumber

BundleUtilities: Fix test when using xcode (#12034)

Clinton Stimpson 14 tahun lalu
induk
melakukan
e40b79e79f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Tests/BundleUtilities/bundleutils.cmake

+ 1 - 1
Tests/BundleUtilities/bundleutils.cmake

@@ -37,7 +37,7 @@ include(BundleUtilities)
 fixup_bundle("${OUTPUT}" "${OUTPUT_MODULE}" "${INPUTDIR}")
 
 # make sure we can run the app
-execute_process(COMMAND "${OUTPUT}" RESULT_VARIABLE result)
+execute_process(COMMAND "${OUTPUT}" RESULT_VARIABLE result WORKING_DIRECTORY "${EXE_DIR}")
 
 if(NOT result STREQUAL "0")
   message(FATAL_ERROR " failed to execute test program")