summaryrefslogtreecommitdiffstats
path: root/SCons/cppTests.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2023-01-29 00:52:07 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2023-01-29 00:52:07 (GMT)
commita220b3f5989db0696d9d03a0988cbcff60e90e59 (patch)
treef8cce0c05888743c2337bbc1a7a066c056165e4b /SCons/cppTests.py
parente980c5bc26892ce4db1e45516e9983bbc6a2bd33 (diff)
parent04bc3eaab31c5437764b10ee942b19740b5139c9 (diff)
downloadSCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.zip
SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.gz
SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.bz2
Merge remote-tracking branch 'upstream/master' into fix_configure_marking_up_to_date
Diffstat (limited to 'SCons/cppTests.py')
-rw-r--r--SCons/cppTests.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/SCons/cppTests.py b/SCons/cppTests.py
index a9aef9d..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 = [
@@ -876,7 +882,9 @@ if __name__ == '__main__':
fileTestCase,
]
for tclass in tclasses:
- names = unittest.getTestCaseNames(tclass, 'test_')
+ loader = unittest.TestLoader()
+ loader.testMethodPrefix = 'test_'
+ names = loader.getTestCaseNames(tclass)
try:
names = sorted(set(names))
except NameError: