aboutsummaryrefslogtreecommitdiff
path: root/tests/cfg-create.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-10-18 18:45:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-10-18 18:45:54 +0300
commit23dfd50930bfe3d7135a567e7c67eea21aeece98 (patch)
tree3c0f701f4a76870a452e069e7e1fe53c299e230f /tests/cfg-create.testscript
parentb3bfef53ee45f0ed5cc2293d7e60f0796fd7e95e (diff)
Use $quote() for quoting config.cxx option value in testscripts
Diffstat (limited to 'tests/cfg-create.testscript')
-rw-r--r--tests/cfg-create.testscript6
1 files changed, 4 insertions, 2 deletions
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/%