From f94edcd85559cec9fb1f409394c8a36a457acebc Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 7 Jan 2009 16:54:54 +0000 Subject: [PATCH] Fix spaces in CCACHE_DIR and probably other places git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11037 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CCache/execute.c | 4 ++-- CCache/test.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CCache/execute.c b/CCache/execute.c index 214b233b4..5a5592bf5 100644 --- a/CCache/execute.c +++ b/CCache/execute.c @@ -56,7 +56,7 @@ int execute(char **argv, { #ifdef _WIN32 -#if 0 +#if 1 PROCESS_INFORMATION pinfo; STARTUPINFO sinfo; BOOL ret; @@ -110,7 +110,7 @@ int execute(char **argv, return exitcode; #else /* possibly slightly faster */ - /* Should be portable */ + /* needs fixing to quote commandline options to handle spaces in CCACHE_DIR etc */ int status = -2; int fd, std_od = -1, std_ed = -1; diff --git a/CCache/test.sh b/CCache/test.sh index 0daa30561..9581c85e3 100755 --- a/CCache/test.sh +++ b/CCache/test.sh @@ -74,7 +74,7 @@ checkstat() { basetests() { echo "starting testsuite $testsuite" - rm -rf .ccache + rm -rf "$CCACHE_DIR" checkstat 'cache hit' 0 checkstat 'cache miss' 0 @@ -279,7 +279,7 @@ basetests() { swigtests() { echo "starting swig testsuite $testsuite" - rm -rf .ccache + rm -rf "$CCACHE_DIR" checkstat 'cache hit' 0 checkstat 'cache miss' 0 @@ -402,8 +402,8 @@ swigtests() { rm -rf $TESTDIR mkdir $TESTDIR cd $TESTDIR || exit 1 -mkdir .ccache -CCACHE_DIR=.ccache +CCACHE_DIR="ccache dir" # with space in directory name (like Windows default) +mkdir "$CCACHE_DIR" export CCACHE_DIR testsuite="base"