diff options
Diffstat (limited to 'build2/test/script/script.cxx')
-rw-r--r-- | build2/test/script/script.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/test/script/script.cxx b/build2/test/script/script.cxx index 342cae9..bd13845 100644 --- a/build2/test/script/script.cxx +++ b/build2/test/script/script.cxx @@ -549,7 +549,10 @@ namespace build2 // // @@ OUT: what if this is a @-qualified pair or names? // - t = &search (*n, tt.base_scope ()); + t = search_existing (*n, tt.base_scope ()); + + if (t == nullptr) + fail << "unknown target '" << n << "' in test variable"; } } else |