diff options
Diffstat (limited to 'libbuild2/test/script')
-rw-r--r-- | libbuild2/test/script/runner.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/test/script/runner.cxx b/libbuild2/test/script/runner.cxx index 554edd0..56e29b1 100644 --- a/libbuild2/test/script/runner.cxx +++ b/libbuild2/test/script/runner.cxx @@ -8,7 +8,8 @@ #include <libbutl/regex.mxx> #include <libbutl/builtin.mxx> -#include <libbutl/fdstream.mxx> // fdopen_mode, fdnull(), fddup() +#include <libbutl/fdstream.mxx> // fdopen_mode, fdnull(), fddup() +#include <libbutl/filesystem.mxx> // path_search(), path_pattern() #include <libbuild2/variable.hxx> #include <libbuild2/filesystem.hxx> @@ -800,7 +801,7 @@ namespace build2 // Remove files or directories using wildcard. // - if (p.string ().find_first_of ("?*") != string::npos) + if (path_pattern (p)) { bool removed (false); |