diff options
author | Lukas Erlinghagen <erluk@web.de> | 2009-06-12 16:30:31 +0000 |
---|---|---|
committer | Lukas Erlinghagen <erluk@web.de> | 2009-06-12 16:30:31 +0000 |
commit | aea97f82cd1aa0e83354535fede2c864c9ac38df (patch) | |
tree | 9190cfeba38b4a0a926c9873210f7b69ca23dab4 /test/option--duplicate.py | |
parent | 3fc829e47e1960a2c7054bde82ba4e2ebb8e0add (diff) | |
download | scons-aea97f82cd1aa0e83354535fede2c864c9ac38df.tar.gz |
- Changed the option--duplicate test to only test the number of hard links on systems that actually support it
Diffstat (limited to 'test/option--duplicate.py')
-rw-r--r-- | test/option--duplicate.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/option--duplicate.py b/test/option--duplicate.py index 642589e5..7524c969 100644 --- a/test/option--duplicate.py +++ b/test/option--duplicate.py @@ -55,12 +55,24 @@ copy = 1 # should always work bss = test.workpath('build/SConscript') -criterion = { +criterion_hardlinks = { 'hard' : lambda nl, islink: nl == 2 and not islink, 'soft' : lambda nl, islink: nl == 1 and islink, 'copy' : lambda nl, islink: nl == 1 and not islink, } +criterion_no_hardlinks = { + 'hard' : lambda nl, islink: not islink, + 'soft' : lambda nl, islink: islink, + 'copy' : lambda nl, islink: not islink, +} + +# On systems without hard linking, it doesn't make sense to check ST_NLINK +if hard: + criterion = criterion_hardlinks +else: + criterion = criterion_no_hardlinks + description = { 'hard' : 'a hard link', 'soft' : 'a soft link', |