2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-01 20:32:17 +00:00
Files
build/test/gcc_runtime.py
Vladimir Prus a1753dcec1 Additional test
[SVN r25702]
2004-10-13 08:03:59 +00:00

35 lines
991 B
Python

#!/usr/bin/python
# Copyright (C) Vladimir Prus 2004. Permission to copy, use, modify, sell and
# distribute this software is granted provided this copyright notice appears in
# all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
# Tests that on gcc, we correctly report problem when static runtime
# is requested when building DLL.
from BoostBuild import Tester, List
import string
t = Tester()
# Create the needed files
t.write("project-root.jam", "")
t.write("Jamfile", """
lib hello : hello.cpp ;
""")
t.write("hello.cpp", """
int main()
{
return 0;
}
""")
t.run_build_system("link-runtime=static", status=1)
t.fail_test(string.find(t.stdout(),
"on gcc, DLL can't be build with <link-runtime>static") == -1)
t.run_build_system("link=static link-runtime=static")
t.expect_addition("bin/$toolset/debug/link-runtime-static/link-static/hello.lib")
t.cleanup()