]>
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 | # Regression test: virtual targets with different dependency properties were | |
8 | # considered different by 'virtual-target.register', but the code which | |
9 | # determined the actual target paths ignored dependency properties so both | |
10 | # targets ended up being in the same location. | |
11fdf7f2 TL |
11 | # |
12 | # This test has flip-flopped several times between passing and failing. | |
13 | # Currently, the library is only considered relevant for linking and thus | |
14 | # does not cause a conflict. SJW 20180115 | |
7c673cae FG |
15 | |
16 | import BoostBuild | |
17 | ||
18 | ||
19 | t = BoostBuild.Tester() | |
20 | ||
21 | t.write("jamroot.jam", """\ | |
22 | lib foo : foo.cpp ; | |
23 | exe hello : hello.cpp ; | |
24 | exe hello2 : hello.cpp : <library>foo ; | |
25 | """) | |
26 | ||
27 | t.write("hello.cpp", "int main() {}\n") | |
28 | ||
29 | t.write("foo.cpp", """\ | |
30 | #ifdef _WIN32 | |
31 | __declspec(dllexport) | |
32 | #endif | |
33 | void foo() {} | |
34 | """) | |
35 | ||
11fdf7f2 | 36 | t.run_build_system(["--no-error-backtrace"], status=0) |
7c673cae FG |
37 | |
38 | t.cleanup() |