libs/regex/build/Jamfile.v2 missing "import testing"

In a partial installation (not all submodules installed), running b2 in the Boost root says: libs\regex\build\Jamfile.v2:93: in modules.load ERROR: rule "unit-test" unknown in module "Jamfile<D:\tmp2\boost-root\libs\regex\build>". because libs/regex/build/Jamfile.v2 uses the unit-test rule, defined in testing.jam, but does not have "import testing ;". Adding that line fixes it. I've no idea why it works in a full installation - probably because someone else imports testing first before it gets to regex.

On 10/11/2016 01:00, Peter Dimov wrote:
In a partial installation (not all submodules installed), running b2 in the Boost root says:
libs\regex\build\Jamfile.v2:93: in modules.load ERROR: rule "unit-test" unknown in module "Jamfile<D:\tmp2\boost-root\libs\regex\build>".
because libs/regex/build/Jamfile.v2 uses the unit-test rule, defined in testing.jam, but does not have "import testing ;". Adding that line fixes it.
I've no idea why it works in a full installation - probably because someone else imports testing first before it gets to regex.
Fixed in develop, likewise in the config runtime checks. Thanks for the heads up, John.
participants (2)
-
John Maddock
-
Peter Dimov