2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00
Files
build/test/double_loading.py
Vladimir Prus e1855f185b Fix a bug which caused double loading of Jamfile in some cases. Also,
simplify some things.

* new/project.jam
  (load): Tweak
  (lookup): Remove.
  (find): Simplify.


[SVN r20430]
2003-10-21 05:47:39 +00:00

30 lines
714 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 for double loading of the same Jamfile.
from BoostBuild import Tester, List
import string
t = Tester()
t.write("Jamfile", """
build-project subdir ;
""")
t.write("project-root.jam", """
""")
t.write("subdir/Jamfile", """
ECHO "Loaded subdir" ;
""")
t.run_build_system(subdir="subdir")
t.fail_test(string.count(t.stdout(), "Loaded subdir") != 1)
t.cleanup()