summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins@gmail.com>2014-07-18 01:33:06 -0400
committerWilliam Blevins <wblevins@gmail.com>2014-07-18 01:33:06 -0400
commitf0276ef11b551cfa123e8357283fe38a7b3c73db (patch)
treef8fbe7398c5364de3251cbe480f190fa09ba8cf6
parenta989c27e9219dcc3402e7153de20b6f3c9f73c7a (diff)
downloadscons-f0276ef11b551cfa123e8357283fe38a7b3c73db.tar.gz
Issue 1771/2931: Added no_result check for tools to validate initial test conditions.
-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 5cf4af75..f5ba95cb 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'],
"""