$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: joaquin_at_[hidden]
Date: 2007-11-22 02:59:29
Author: joaquin
Date: 2007-11-22 02:59:28 EST (Thu, 22 Nov 2007)
New Revision: 41297
URL: http://svn.boost.org/trac/boost/changeset/41297
Log:
included an exe filename modifying rule to avoid interference problems with Vista UAC (fixes #1429)
Text files modified: 
   trunk/libs/multi_index/test/Jamfile.v2 |    26 ++++++++++++++++++++++++--              
   1 files changed, 24 insertions(+), 2 deletions(-)
Modified: trunk/libs/multi_index/test/Jamfile.v2
==============================================================================
--- trunk/libs/multi_index/test/Jamfile.v2	(original)
+++ trunk/libs/multi_index/test/Jamfile.v2	2007-11-22 02:59:28 EST (Thu, 22 Nov 2007)
@@ -7,6 +7,25 @@
 #
 # See http://www.boost.org/libs/multi_index for library home page.
 
+import os ;
+import type ;
+
+# Windows Vista UAC has an heuristic by which executable files whose name
+# contains any of the words "install", "setup", "update", etc. are assumed
+# to be installation packages needing administrative rights, which causes
+# the system to bring up a window asking for execution confirmation by the
+# user, thus interferring in the unattended bjam process.
+# Problem bypassed by changing the EXE names containing a taboo word.
+# Thanks to Rene Rivera for guidance on the use of the <tag> feature.
+
+rule change-test_update-exe-name ( name : type ? : property-set ) 
+{ 
+    if [ os.on-windows ] && [ type.is-subtype $(type) EXE ]
+    {
+        return test_updat ;
+    }
+} 
+
 test-suite "multi_index" :
     [ run test_basic.cpp            test_basic_main.cpp            ]
     [ run test_capacity.cpp         test_capacity_main.cpp         ]
@@ -27,9 +46,12 @@
     [ run test_safe_mode.cpp        test_safe_mode_main.cpp        ]
     [ run test_serialization.cpp    test_serialization1.cpp
           test_serialization2.cpp   test_serialization3.cpp
-		  test_serialization_main.cpp
+          test_serialization_main.cpp
                 /boost/serialization//boost_serialization          ]
     [ run test_set_ops.cpp          test_set_ops_main.cpp          ]
     [ run test_special_set_ops.cpp  test_special_set_ops_main.cpp  ]
-    [ run test_update.cpp           test_update_main.cpp           ]
+    [ run test_update.cpp           test_update_main.cpp 
+        : : : 
+        -<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
+        <tag>@change-test_update-exe-name                          ] 
     ;