Last change
on this file since 29 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | # Copyright (C) Vladimir Prus 2003. Permission to copy, use, modify, sell and |
---|
4 | # distribute this software is granted provided this copyright notice appears in |
---|
5 | # all copies. This software is provided "as is" without express or implied |
---|
6 | # warranty, and with no claim as to its suitability for any purpose. |
---|
7 | |
---|
8 | # Regression test: virtual targets with different dependency properties |
---|
9 | # were considered different by 'virtual-target.register', but the code |
---|
10 | # which determined target paths ignored dependency properties --- so both |
---|
11 | # targets used to be placed to the same location. |
---|
12 | |
---|
13 | from BoostBuild import Tester, List |
---|
14 | from string import find |
---|
15 | |
---|
16 | |
---|
17 | t = Tester() |
---|
18 | |
---|
19 | t.write("project-root.jam", "") |
---|
20 | t.write("Jamfile", """ |
---|
21 | lib foo : foo.cpp ; |
---|
22 | exe hello : hello.cpp ; |
---|
23 | exe hello2 : hello.cpp : <library>foo ; |
---|
24 | """) |
---|
25 | t.write("hello.cpp", """ |
---|
26 | int main() |
---|
27 | { |
---|
28 | return 0; |
---|
29 | } |
---|
30 | |
---|
31 | """) |
---|
32 | t.write("foo.cpp", """ |
---|
33 | #ifdef _WIN32 |
---|
34 | __declspec(dllexport) |
---|
35 | #endif |
---|
36 | void foo() {} |
---|
37 | """) |
---|
38 | |
---|
39 | t.run_build_system("--no-error-backtrace", status=1) |
---|
40 | t.fail_test(find(t.stdout(), "Duplicate name of actual target") == -1) |
---|
41 | |
---|
42 | t.cleanup() |
---|
Note: See
TracBrowser
for help on using the repository browser.