mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
End-user error message in Boost Jam based Boost Build utility.ungrist() rule did not correspond to the actual rule's implementation. It implied that the value '<>' should be acceptable while it was not. Python based Boost Build implementation on the other hand accepted such values. Updated the original rule to accept this value as well.
[SVN r78956]
This commit is contained in:
@@ -113,7 +113,7 @@ rule ungrist ( names * )
|
||||
for local name in $(names)
|
||||
{
|
||||
local stripped = [ MATCH ^<(.*)>$ : $(name) ] ;
|
||||
if ! $(stripped)
|
||||
if ! $(stripped)-defined
|
||||
{
|
||||
import errors ;
|
||||
local quoted-names = \"$(names)\" ;
|
||||
@@ -183,6 +183,7 @@ rule __test__ ( )
|
||||
assert.result \"foo\" : unquote \"\"foo\"\" ;
|
||||
|
||||
assert.result : ungrist ;
|
||||
assert.result "" : ungrist <> ;
|
||||
assert.result foo : ungrist <foo> ;
|
||||
assert.result <foo> : ungrist <<foo>> ;
|
||||
assert.result foo bar : ungrist <foo> <bar> ;
|
||||
@@ -193,12 +194,6 @@ rule __test__ ( )
|
||||
}
|
||||
catch "in" ungrist \"\": \"\" is not of the form <.*> ;
|
||||
|
||||
try ;
|
||||
{
|
||||
ungrist <> ;
|
||||
}
|
||||
catch "in" ungrist \"<>\": \"<>\" is not of the form <.*> ;
|
||||
|
||||
try ;
|
||||
{
|
||||
ungrist foo ;
|
||||
|
||||
Reference in New Issue
Block a user