summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FSTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Node/FSTests.py')
-rw-r--r--src/engine/SCons/Node/FSTests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py
index 10e4676..3a862eb 100644
--- a/src/engine/SCons/Node/FSTests.py
+++ b/src/engine/SCons/Node/FSTests.py
@@ -1265,6 +1265,14 @@ class get_actionsTestCase(unittest.TestCase):
a = dir.get_actions()
assert a == [], a
+class SConstructTestCase(unittest.TestCase):
+ def runTest(self):
+ """Test setting the SConstruct file"""
+
+ fs = SCons.Node.FS.FS()
+ fs.set_SConstruct('xxx')
+ assert fs.SConstruct.path == 'xxx'
+
class CacheDirTestCase(unittest.TestCase):
def runTest(self):
"""Test CacheDir functionality"""
@@ -1397,6 +1405,7 @@ if __name__ == "__main__":
suite.addTest(has_builderTestCase())
suite.addTest(prepareTestCase())
suite.addTest(get_actionsTestCase())
+ suite.addTest(SConstructTestCase())
suite.addTest(CacheDirTestCase())
if not unittest.TextTestRunner().run(suite).wasSuccessful():
sys.exit(1)