From d415d9171390bab1f1601641cc0053ab98c1fdd8 Mon Sep 17 00:00:00 2001 From: LRN Date: Fri, 18 May 2012 05:32:17 -0700 Subject: [PATCH] Fix test --define-variable invocation to avoid MSYS path mangling Otherwise tests won't pass when running in MSYS. --- check/check-define-variable | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/check/check-define-variable b/check/check-define-variable index bf8aebe..d35e445 100755 --- a/check/check-define-variable +++ b/check/check-define-variable @@ -9,7 +9,15 @@ set -e . ${srcdir}/common -ARGS="--define-variable=includedir=/includedir/ --cflags simple" +case ${MACHTYPE} in +*-msys) + # Make sure path doesn't get mangled on MSYS + ARGS="--define-variable=includedir=\\/includedir/ --cflags simple" + ;; +*) + ARGS="--define-variable=includedir=/includedir/ --cflags simple" + ;; +esac RESULT="-I/includedir/" run_test