mirror of
https://github.com/boostorg/build.git
synced 2026-02-01 20:32:17 +00:00
metacharacters, Boost.Build misbehaved.
* new/path.jam
(all-parents): Don't use regex to strip path prefix, use a more robust
approach.
* test/bad_dirname.py: New test.
[SVN r18576]
26 lines
685 B
Python
26 lines
685 B
Python
#!/usr/bin/python
|
|
|
|
# Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and
|
|
# distribute this software is granted provided this copyright notice appears in
|
|
# all copies. This software is provided "as is" without express or implied
|
|
# warranty, and with no claim as to its suitability for any purpose.
|
|
|
|
|
|
# Regression test: when directory of project root contained regex metacharacters,
|
|
# Boost.Build failed to work. Bug reported by Michael Stevens
|
|
|
|
from BoostBuild import Tester, List
|
|
|
|
t = Tester()
|
|
|
|
t.write("bad[abc]dirname/Jamfile", """
|
|
""")
|
|
|
|
t.write("bad[abc]dirname/project-root.jam", """
|
|
""")
|
|
|
|
t.run_build_system(subdir="bad[abc]dirname")
|
|
|
|
t.cleanup()
|
|
|