summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FSTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-12-21 19:01:07 (GMT)
committerSteven Knight <knight@baldmt.com>2001-12-21 19:01:07 (GMT)
commitf6ab3b3b0b9847db2041de8e46401e0f44c2be9b (patch)
tree6dbbcf14d190504d14c3dc4a949f9d88d6e14402 /src/engine/SCons/Node/FSTests.py
parented3aa5e39e64a5b48b493f33d1438572678d8b65 (diff)
downloadSCons-f6ab3b3b0b9847db2041de8e46401e0f44c2be9b.zip
SCons-f6ab3b3b0b9847db2041de8e46401e0f44c2be9b.tar.gz
SCons-f6ab3b3b0b9847db2041de8e46401e0f44c2be9b.tar.bz2
Windows NT portability fixes for tests.
Diffstat (limited to 'src/engine/SCons/Node/FSTests.py')
-rw-r--r--src/engine/SCons/Node/FSTests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py
index b166be1..f2130d7 100644
--- a/src/engine/SCons/Node/FSTests.py
+++ b/src/engine/SCons/Node/FSTests.py
@@ -68,8 +68,8 @@ class BuildDirTestCase(unittest.TestCase):
f1 = fs.File('build/test1')
fs.BuildDir('build', 'src')
f2 = fs.File('build/test2')
- assert f1.srcpath == 'src/test1', f1.srcpath
- assert f2.srcpath == 'src/test2', f2.srcpath
+ assert f1.srcpath == os.path.normpath('src/test1'), f1.srcpath
+ assert f2.srcpath == os.path.normpath('src/test2'), f2.srcpath
fs = SCons.Node.FS.FS()
f1 = fs.File('build/test1')
@@ -83,8 +83,8 @@ class BuildDirTestCase(unittest.TestCase):
fs.BuildDir('build/var2', 'src')
f1 = fs.File('build/var1/test1')
f2 = fs.File('build/var2/test1')
- assert f1.srcpath == 'src/test1', f1.srcpath
- assert f2.srcpath == 'src/test1', f2.srcpath
+ assert f1.srcpath == os.path.normpath('src/test1'), f1.srcpath
+ assert f2.srcpath == os.path.normpath('src/test1'), f2.srcpath
# Test to see if file_link() works...
test=TestCmd(workdir='')