summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2021-06-12 12:22:08 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2021-06-12 13:50:58 -0700
commite10c954fa34f67528f0bbe6e7d91179cd83769ab (patch)
treee7589498152f18c22c8f59bdfb623bdb3be713de
parente803b9ca867bee42004e62335afd91a3f7e9812e (diff)
downloadscons-git-e10c954fa34f67528f0bbe6e7d91179cd83769ab.tar.gz
Added test of new functionality for _concat's new affect_signature flag
-rw-r--r--SCons/EnvironmentTests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/SCons/EnvironmentTests.py b/SCons/EnvironmentTests.py
index 78f6ac2aa..2ed897a3c 100644
--- a/SCons/EnvironmentTests.py
+++ b/SCons/EnvironmentTests.py
@@ -143,7 +143,7 @@ class DummyNode:
return self
def test_tool( env ):
- env['_F77INCFLAGS'] = '$( ${_concat(INCPREFIX, F77PATH, INCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)'
+ env['_F77INCFLAGS'] = '${_concat(INCPREFIX, F77PATH, INCSUFFIX, __env__, RDirs, TARGET, SOURCE, affect_signature=False)}'
class TestEnvironmentFixture:
def TestEnvironment(self, *args, **kw):
@@ -1488,6 +1488,9 @@ def exists(env):
assert x == 'prea bsuf', x
x = s("${_concat(PRE, LIST, SUF, __env__)}")
assert x == 'preasuf prebsuf', x
+ x = s("${_concat(PRE, LIST, SUF, __env__,affect_signature=False)}", raw=True)
+ assert x == '$( preasuf prebsuf $)', x
+
def test_concat_nested(self):
"""Test _concat() on a nested substitution strings."""