bad_dirname.py 529 B

12345678910111213141516171819202122
  1. #!/usr/bin/python
  2. # Copyright 2003 Vladimir Prus
  3. # Distributed under the Boost Software License, Version 1.0.
  4. # (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
  5. # Regression test: when directory of project root contained regex
  6. # metacharacters, B2 failed to work. Bug reported by Michael Stevens.
  7. import BoostBuild
  8. t = BoostBuild.Tester()
  9. t.write("bad[abc]dirname/jamfile.jam", """
  10. """)
  11. t.write("bad[abc]dirname/jamroot.jam", """
  12. """)
  13. t.run_build_system(subdir="bad[abc]dirname")
  14. t.cleanup()