From f93038fbee1631b95922b0742e0fd00fa8dae02e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Jan 2017 15:25:26 +0200 Subject: Add notion of phase, enforce --- build2/test/rule.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build2/test/rule.cxx') diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 17821a41..6b06dcac 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -589,7 +589,11 @@ 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 << "invalid test executable override: unknown target: '" + << n << "'"; } } else -- cgit