Imported Upstream version 1.51.0
[platform/upstream/boost.git] / tools / build / v2 / test / loop.py
1 #!/usr/bin/python
2
3 # Copyright 2003 Vladimir Prus
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
6
7 import BoostBuild
8 import string
9
10 t = BoostBuild.Tester()
11
12 t.write("jamroot.jam", """
13 lib main : main.cpp l ;
14 lib l : l.cpp main ;
15 """)
16
17 t.write("main.cpp", "")
18
19 t.write("l.cpp", "")
20
21 t.run_build_system("--no-error-backtrace", status=1)
22 t.fail_test(string.find(t.stdout(),
23     "error: Recursion in main target references") == -1)
24
25 t.cleanup()