summaryrefslogtreecommitdiffstats
path: root/test/option--duplicate.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-05-15 23:40:56 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-05-15 23:40:56 (GMT)
commitddf761e8c2568fb416158b70c92f83e9a821a1bb (patch)
treeb4d59c6def125b731ebde9fa20a7ee3cdb789828 /test/option--duplicate.py
parent88d9adf2df28f5f1e4d1182f4db48ddbcbc88062 (diff)
downloadSCons-ddf761e8c2568fb416158b70c92f83e9a821a1bb.zip
SCons-ddf761e8c2568fb416158b70c92f83e9a821a1bb.tar.gz
SCons-ddf761e8c2568fb416158b70c92f83e9a821a1bb.tar.bz2
py2/3 Don't check for hard/soft links on win32 as we don't enable them because they require permissions which are not always enabled
Diffstat (limited to 'test/option--duplicate.py')
-rw-r--r--test/option--duplicate.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/option--duplicate.py b/test/option--duplicate.py
index cccc185..2d21d74 100644
--- a/test/option--duplicate.py
+++ b/test/option--duplicate.py
@@ -30,6 +30,7 @@ SConscript settable option.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
+import sys
import stat
import TestSCons
@@ -49,8 +50,10 @@ SConscript('build/SConscript')
test.write('SConscript', '')
-hard = hasattr(os,'link')
-soft = hasattr(os,'symlink')
+# we don't use links on windows currently as they
+# require permissions not usually set
+hard = hasattr(os, 'link') and sys.platform != 'win32'
+soft = hasattr(os, 'symlink') and sys.platform != 'win32'
copy = 1 # should always work
bss = test.workpath('build/SConscript')