From b9bc5124808589aa687ecde4178e595be81c7083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Luthi?= Date: Thu, 26 Jun 2014 00:44:54 +0200 Subject: [PATCH] Fix passing list of arguments to lcov and gcov Without proper quoting, coverage scripts would fail if the built products directory contains a space. --- envcov.sh | 2 +- llvm-cov-wrapper.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/envcov.sh b/envcov.sh index 7644205..16dbbbb 100644 --- a/envcov.sh +++ b/envcov.sh @@ -16,5 +16,5 @@ OBJ_DIR=${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH} # Fix for the new LLVM-COV that requires gcov to have a -v paramter LCOV() { - ${LCOV_PATH}/lcov $* --gcov-tool ${XCODECOVERAGE_PATH}/llvm-cov-wrapper.sh + ${LCOV_PATH}/lcov "$@" --gcov-tool ${XCODECOVERAGE_PATH}/llvm-cov-wrapper.sh } diff --git a/llvm-cov-wrapper.sh b/llvm-cov-wrapper.sh index b0e642f..76696a5 100755 --- a/llvm-cov-wrapper.sh +++ b/llvm-cov-wrapper.sh @@ -9,5 +9,5 @@ if [ "$1" = "-v" ]; then echo "llvm-cov-wrapper 4.2.1" exit 0 else - /usr/bin/gcov $* + /usr/bin/gcov "$@" fi