summaryrefslogtreecommitdiffstats
path: root/test/D/Scanner.py
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2014-09-12 17:59:39 (GMT)
committerDirk Baechle <dl9obn@darc.de>2014-09-12 17:59:39 (GMT)
commit2607d69b86683acd061491826b5bf304f552284d (patch)
treea125cf2fc6f5024c9919f4a992b318c1350f0304 /test/D/Scanner.py
parent87cb9ca579c9e8cc2d972552f8db6590b991cdeb (diff)
parent70a6365e0bcf530819a83edaa3b9d9bbc08b218e (diff)
downloadSCons-2607d69b86683acd061491826b5bf304f552284d.zip
SCons-2607d69b86683acd061491826b5bf304f552284d.tar.gz
SCons-2607d69b86683acd061491826b5bf304f552284d.tar.bz2
Merged in russel/scons (pull request #182), various fixes for the D tools and their tests
Diffstat (limited to 'test/D/Scanner.py')
-rw-r--r--test/D/Scanner.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/D/Scanner.py b/test/D/Scanner.py
index 48af057..b005adf 100644
--- a/test/D/Scanner.py
+++ b/test/D/Scanner.py
@@ -31,12 +31,16 @@ a single statement.
import TestSCons
+import sys
+from os.path import abspath, dirname, join
+sys.path.append(join(dirname(abspath(__file__)), 'Support'))
+from executablesSearch import isExecutableOfToolAvailable
+
test = TestSCons.TestSCons()
_obj = TestSCons._obj
-dmd = test.where_is('dmd')
-if not dmd:
+if not isExecutableOfToolAvailable(test, 'dmd'):
test.skip_test("Could not find 'dmd'; skipping test.\n")
test.subdir(['p'])