From 23dfd50930bfe3d7135a567e7c67eea21aeece98 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 18 Oct 2019 18:45:54 +0300 Subject: Use $quote() for quoting config.cxx option value in testscripts --- tests/cfg-create.testscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/cfg-create.testscript') diff --git a/tests/cfg-create.testscript b/tests/cfg-create.testscript index 68aea13..8d7f95e 100644 --- a/tests/cfg-create.testscript +++ b/tests/cfg-create.testscript @@ -4,6 +4,8 @@ .include common.testscript +config_cxx = config.cxx=$quote($recall($cxx.path) $cxx.mode, true) + pkg_status += -d cfg : non-empty @@ -48,7 +50,7 @@ EOE : module : { - $* cxx "config.cxx=$config.cxx" 2>>/~%EOE%; + $* cxx $config_cxx 2>>/~%EOE%; %created new configuration in .+/cfg/% EOE @@ -76,7 +78,7 @@ EOE : existing : { - $build 'create(cfg/,cc)' "config.cxx=$config.cxx" 2>!; + $build 'create(cfg/,cc)' $config_cxx 2>!; $* --existing 2>>/~%EOE%; %initialized existing configuration in .+/cfg/% -- cgit v1.1