diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-09-19 17:43:02 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-09-27 18:29:19 +0300 |
commit | c595aac0142436f64ada4f5412b821bfcc6db008 (patch) | |
tree | f0b20b290a52cba6f01cb07df7b9734941fad050 /libbuild2/test/script | |
parent | 28d1791e2dc66cc610468deb29ea030e28d0793c (diff) |
Adapt to bracket expressions in wildcard patterns
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); |