From dd2fc0642b2b7b4f27496bb06959f5230da41405 Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 6 Jan 2014 13:25:14 +0000 Subject: [PATCH] test_vars: also check @IS_MSVC@ content On autotools if @IS_MSVC@ is not defined, it is left as a string literal, instead of being nothing. Because of that, the content is now also checked. For CMake and MSVC, @IS_MSVC@ will be '1'. Otherwise, it can be anything else. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1045 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- tests/test_vars.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_vars.in b/tests/test_vars.in index f3dbf20..3bdc5f9 100644 --- a/tests/test_vars.in +++ b/tests/test_vars.in @@ -8,7 +8,7 @@ export HAVE_FORK # path of the tests directory if [ x"@srcdir@" != x"." ]; then - if [ -z "@IS_MSVC@" ]; then + if [ -z "@IS_MSVC@" -o "@IS_MSVC@"!="1" ]; then SRCDIR="@srcdir@/" else SRCDIR="@srcdir@\\" -- 2.40.0