]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | t.write("l.cpp", "") | |
19 | ||
20 | t.run_build_system(["--no-error-backtrace"], status=1) | |
21 | t.fail_test(string.find(t.stdout(), | |
22 | "error: Recursion in main target references") == -1) | |
23 | ||
24 | t.cleanup() |