exit_status.py 520 B

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