From 2261b467aaee8e63a0f1a058dcf6fd4c7136db20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Mon, 2 Jul 2012 09:50:12 +0000 Subject: [PATCH] Yet another attempt at getting Boost Build's test_rc.py test to use its internal dummy-RC toolset correctly. Now disabled reading any external Boost Build configuration files to avoid having other, not actually used, toolsets (e.g. gcc) change the OBJ target suffix used by Boost Build. [SVN r79225] --- v2/test/test_rc.py | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/v2/test/test_rc.py b/v2/test/test_rc.py index 579050f8b..197ae8f3d 100755 --- a/v2/test/test_rc.py +++ b/v2/test/test_rc.py @@ -18,14 +18,25 @@ def included_resource_newer_than_rc_script(): """ toolsetName = "__myDummyResourceCompilerToolset__" - # We pass -d4 & --debug-configuration flags so we can get additional - # information in case this test fails. In the past we have had testing - # system issues causing this test to fail sporadically for which -d+3 - # output had been instrumental in getting to the root cause (a touched - # file's timestamp was not as new as it should have been). - t = BoostBuild.Tester("-d4 toolset=__myDummyResourceCompilerToolset__ " - "--debug-configuration", pass_d0=False, pass_toolset=False, - use_test_config=False, translate_suffixes=False) + # Used options rationale: + # + # -d4 & --debug-configuration + # Display additional information in case of test failure. In the past + # we have had testing system issues causing this test to fail + # sporadically for which -d+3 output had been instrumental in getting to + # the root cause (a touched file's timestamp was not as new as it should + # have been). + # + # --ignore-site-config --user-config= + # Disable reading any external Boost Build configuration. This avoids + # being adversly affected by other initialized toolset's global Boost + # Build configuration settings. For example, if the gcc toolset is + # initialized it may, depending on the platform, change the file + # extension Boost Build uses for its OBJ targets to '.o' even though we + # are using our own custom toolset in this test. + t = BoostBuild.Tester("-d4 --debug-configuration --ignore-site-config " + "--user-config= toolset=%s" % toolsetName, pass_d0=False, + pass_toolset=False, use_test_config=False, translate_suffixes=False) # Prepare a dummy toolset so we do not get errors in case the default one # is not found and that we can test rc.jam functionality without having to