From 28ee146607d2efb990019d081632b720cf154ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Wed, 9 Jan 2008 04:30:25 +0000 Subject: [PATCH] Fixed a failing test by making it access its action results using the __ACTION_RULE__ rule. Now it works with the default debug level settings (i.e. no action output displayed). [SVN r42631] --- test/module-actions/bootstrap.jam | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/module-actions/bootstrap.jam b/test/module-actions/bootstrap.jam index 6b024cac9..905f664dc 100644 --- a/test/module-actions/bootstrap.jam +++ b/test/module-actions/bootstrap.jam @@ -6,6 +6,16 @@ # Demonstration that module variables have the right effect in actions. +rule display-action-output ( args * : target + : command status start end user system : output-lines * ) +{ + for local line in $(output-lines) + { + ECHO $(line) ; + } +} + + # Top-level rule that causes a target to be built by invoking the specified # action. rule make ( target : sources * : act ) @@ -13,6 +23,7 @@ rule make ( target : sources * : act ) DEPENDS all : $(target) ; DEPENDS $(target) : $(sources) ; $(act) $(target) : $(sources) ; + __ACTION_RULE__ on $(target) = display-action-output ; }