From fe59bbdb3df693bc47285e8dbf200d0225cc4b2c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 24 Jul 2017 04:52:55 +0300 Subject: [PATCH] Add 03/11 mismatch tests --- test/Jamfile.v2 | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index d3ba574..7064eb9 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -20,7 +20,38 @@ project : shared:BOOST_SYSTEM_DYN_LINK=1 static:BOOST_SYSTEM_STATIC_LINK=1 ; - + + rule cxx03 ( properties * ) + { + local result ; + + if gcc in $(properties) || clang in $(properties) + { + result = -std=c++03 ; + } + else + { + result = no ; + } + + return $(result) ; + } + + rule cxx11 ( properties * ) + { + local result ; + + if gcc in $(properties) || clang in $(properties) + { + result = -std=c++11 ; + } + else + { + result = no ; + } + + return $(result) ; + } test-suite "system" : [ run error_code_test.cpp @@ -32,6 +63,18 @@ project [ run error_code_test.cpp : : : shared : error_code_test_shared ] + [ run error_code_test.cpp + : : : static @cxx03 : error_code_test_03 + ] + [ run error_code_test.cpp + : : : shared @cxx03 : error_code_test_shared_03 + ] + [ run error_code_test.cpp + : : : static @cxx11 : error_code_test_11 + ] + [ run error_code_test.cpp + : : : shared @cxx11 : error_code_test_shared_11 + ] [ run error_code_user_test.cpp : : : static ]