Imported Upstream version 1.51.0
[platform/upstream/boost.git] / tools / build / test / exit_status.py
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
10 import BoostBuild
11
12 # Create a temporary working directory.
13 t = BoostBuild.Tester()
14
15 # Create the needed files.
16 t.write("jamroot.jam", """
17 exe hello : hello.cpp ;
18 """)
19
20 t.write("hello.cpp", """
21 int main() {
22 """)
23
24 t.run_build_system(status=1)
25
26 t.cleanup()