mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 00:12:11 +00:00
Fixed bug in assert.nonempty-variable
[SVN r13587]
This commit is contained in:
@@ -39,8 +39,9 @@ rule result ( expected * : rule-name args * : * )
|
||||
# assert that the given variable is nonempty.
|
||||
rule nonempty-variable ( name )
|
||||
{
|
||||
local empty ;
|
||||
if $($(variable)) = $(empty)
|
||||
local value = [ modules.peek [ CALLER_MODULE ] : $(name) ] ;
|
||||
|
||||
if ! $(value)-is-nonempty
|
||||
{
|
||||
error-skip-frames 3 assertion failure: expecting non-empty variable $(variable) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user