summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/UtilTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/UtilTests.py')
-rw-r--r--src/engine/SCons/UtilTests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/SCons/UtilTests.py b/src/engine/SCons/UtilTests.py
index 098c2d9..5825406 100644
--- a/src/engine/SCons/UtilTests.py
+++ b/src/engine/SCons/UtilTests.py
@@ -1050,6 +1050,11 @@ class UtilTestCase(unittest.TestCase):
wi = WhereIs('xxx.exe', string.join(pathdirs_1243, os.pathsep))
assert wi == test.workpath(sub4_xxx_exe), wi
+ wi = WhereIs('xxx.exe',reject = sub3_xxx_exe)
+ assert wi == test.workpath(sub4_xxx_exe), wi
+ wi = WhereIs('xxx.exe', pathdirs_1243, reject = sub3_xxx_exe)
+ assert wi == test.workpath(sub4_xxx_exe), wi
+
os.environ['PATH'] = string.join(pathdirs_1243, os.pathsep)
wi = WhereIs('xxx.exe')
assert wi == test.workpath(sub4_xxx_exe), wi