3 # Copyright 2007 Rene Rivera.
4 # Copyright 2011 Steven Watanabe
5 # Distributed under the Boost Software License, Version 1.0.
6 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
10 t = BoostBuild.Tester(pass_toolset=0)
12 t.write("sleep.bat","""@setlocal
14 @REM timeout /T %1 /NOBREAK >nul
15 ping 127.0.0.1 -n 2 -w 1000 >nul
16 ping 127.0.0.1 -n %1 -w 1000 >nul
21 t.write("file.jam", """
25 SLEEP = @call sleep.bat ;
40 DEPENDS all : sleeper ;
43 t.run_build_system("-ffile.jam -d1 -l2", status=1)
45 t.expect_output_line("2 second time limit exceeded")