From ee64fadec760e28945808720271866a3be4935e1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Mar 2017 14:50:49 +0200 Subject: Add tests for multi-pattern crosses seeing that we use them --- build2/parser.cxx | 2 +- tests/name/cross.test | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build2/parser.cxx b/build2/parser.cxx index 27e1933..4d628b0 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -2341,7 +2341,7 @@ namespace build2 return ns.size () - start; } - // Expand a name pattern. Note that the result can empty (as in "no + // Expand a name pattern. Note that the result can be empty (as in "no // elements"). // size_t parser:: diff --git a/tests/name/cross.test b/tests/name/cross.test index 04da551..3847b6a 100644 --- a/tests/name/cross.test +++ b/tests/name/cross.test @@ -102,6 +102,12 @@ EOI { touch x.foo y.bar; $* <'print {foo bar}{*}' >'foo{x} bar{y}' + + mkdir dir && touch dir/x.foo; + $* <'print {*/}{*.foo}' >'dir/x.foo' + + mkdir dir && touch dir/x.foo; + $* <'print {*/}{foo}{*}' >'dir/foo{x}' } # @@ TODO: nested replay. -- cgit v1.1