1#!/usr/bin/python 2 3# Copyright (C) Vladimir Prus 2010. 4# Distributed under the Boost Software License, Version 1.0. (See 5# accompanying file LICENSE_1_0.txt or copy at 6# http://www.boost.org/LICENSE_1_0.txt) 7 8# Test that build failure results in non-zero exit status 9 10import BoostBuild 11 12# Create a temporary working directory. 13t = BoostBuild.Tester() 14 15# Create the needed files. 16t.write("jamroot.jam", """ 17exe hello : hello.cpp ; 18""") 19 20t.write("hello.cpp", """ 21int main() { 22""") 23 24t.run_build_system(status=1) 25 26t.cleanup() 27