Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/gcc_runtime.py @ 32

Last change on this file since 32 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 991 bytes
Line 
1#!/usr/bin/python
2
3#  Copyright (C) Vladimir Prus 2004. 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#  Tests that on gcc, we correctly report problem when static runtime
9#  is requested when building DLL.
10from BoostBuild import Tester, List
11import string
12
13t = Tester()
14
15# Create the needed files
16t.write("project-root.jam", "")
17t.write("Jamfile", """
18lib hello : hello.cpp ;
19""")
20t.write("hello.cpp", """
21int main()
22{
23    return 0;
24}
25""")
26
27t.run_build_system("runtime-link=static", status=1)
28t.fail_test(string.find(t.stdout(),
29                        "on gcc, DLL can't be build with <runtime-link>static") == -1)
30
31t.run_build_system("link=static runtime-link=static")
32t.expect_addition("bin/$toolset/debug/link-static/runtime-link-static/hello.lib")
33
34t.cleanup()
Note: See TracBrowser for help on using the repository browser.