From c8baceb1525e31f4411249908a8e5c916f2f8a13 Mon Sep 17 00:00:00 2001 From: William Blevins Date: Fri, 18 Jul 2014 01:33:06 -0400 Subject: Issue 1771/2931: Added no_result check for tools to validate initial test conditions. --- test/Java/DerivedSourceTest.py | 4 ++++ 1 file changed, 4 insertions(+) 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'], """ -- cgit v0.12