summaryrefslogtreecommitdiffstats
path: root/test/Java
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins@gmail.com>2014-07-18 05:33:06 (GMT)
committerWilliam Blevins <wblevins@gmail.com>2014-07-18 05:33:06 (GMT)
commitc8baceb1525e31f4411249908a8e5c916f2f8a13 (patch)
treef8fbe7398c5364de3251cbe480f190fa09ba8cf6 /test/Java
parent40b656483bc892ef47ff4751aef1e43c4449042d (diff)
downloadSCons-c8baceb1525e31f4411249908a8e5c916f2f8a13.zip
SCons-c8baceb1525e31f4411249908a8e5c916f2f8a13.tar.gz
SCons-c8baceb1525e31f4411249908a8e5c916f2f8a13.tar.bz2
Issue 1771/2931: Added no_result check for tools to validate initial test conditions.
Diffstat (limited to 'test/Java')
-rw-r--r--test/Java/DerivedSourceTest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Java/DerivedSourceTest.py b/test/Java/DerivedSourceTest.py
index 5cf4af7..f5ba95c 100644
--- a/test/Java/DerivedSourceTest.py
+++ b/test/Java/DerivedSourceTest.py
@@ -45,6 +45,10 @@ SCons.Defaults.DefaultEnvironment(tools = [])
test = TestSCons.TestSCons()
+# No result if tools not available
+test.no_result( condition=(test.where_is( 'javac' ) is None) )
+test.no_result( condition=(test.where_is( 'jar' ) is None) )
+
test.write(
['Sample.java'],
"""