From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/boost/tools/build/test/conditionals3.py | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/boost/tools/build/test/conditionals3.py (limited to 'src/boost/tools/build/test/conditionals3.py') diff --git a/src/boost/tools/build/test/conditionals3.py b/src/boost/tools/build/test/conditionals3.py new file mode 100644 index 00000000..feffe490 --- /dev/null +++ b/src/boost/tools/build/test/conditionals3.py @@ -0,0 +1,30 @@ +#!/usr/bin/python + +# Copyright 2003 Vladimir Prus +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) + +# Test that conditional properties work, even if property is free, and value +# includes a colon. + +import BoostBuild + +t = BoostBuild.Tester(use_test_config=False) + +t.write("jamroot.jam", """ +exe hello : hello.cpp : debug:"CLASS=Foo::Bar" ; +""") + +t.write("hello.cpp", """ +namespace Foo { class Bar { } ; } +int main() +{ + CLASS c; + c; // Disables the unused variable warning. +} +""") + +t.run_build_system(stdout=None, stderr=None) +t.expect_addition("bin/$toolset/debug*/hello.exe") + +t.cleanup() -- cgit v1.2.3