summaryrefslogtreecommitdiffstats
path: root/SCons/cppTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'SCons/cppTests.py')
-rw-r--r--SCons/cppTests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/SCons/cppTests.py b/SCons/cppTests.py
index f20c302..f781e81 100644
--- a/SCons/cppTests.py
+++ b/SCons/cppTests.py
@@ -55,6 +55,8 @@ substitution_input = """
#include XXX_FILE5
#include XXX_FILE6
+
+#include SHELL_ESCAPED_H
"""
@@ -441,7 +443,8 @@ if_no_space_input = """
class cppTestCase(unittest.TestCase):
def setUp(self):
self.cpp = self.cpp_class(current = ".",
- cpppath = ['/usr/include'])
+ cpppath = ['/usr/include'],
+ dict={"SHELL_ESCAPED_H": '\\"file-shell-computed-yes\\"'})
def test_basic(self):
"""Test basic #include scanning"""
@@ -531,6 +534,7 @@ class cppAllTestCase(cppTestCase):
def setUp(self):
self.cpp = self.cpp_class(current = ".",
cpppath = ['/usr/include'],
+ dict={"SHELL_ESCAPED_H": '\\"file-shell-computed-yes\\"'},
all=1)
class PreProcessorTestCase(cppAllTestCase):
@@ -546,6 +550,7 @@ class PreProcessorTestCase(cppAllTestCase):
('include', '<', 'file4-yes'),
('include', '"', 'file5-yes'),
('include', '<', 'file6-yes'),
+ ('include', '"', 'file-shell-computed-yes'),
]
ifdef_expect = [
@@ -647,6 +652,7 @@ class DumbPreProcessorTestCase(cppAllTestCase):
('include', '<', 'file4-yes'),
('include', '"', 'file5-yes'),
('include', '<', 'file6-yes'),
+ ('include', '"', 'file-shell-computed-yes'),
]
ifdef_expect = [