summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-05-16 23:13:53 +0200
committerCarl Hetherington <cth@carlh.net>2023-05-16 23:13:53 +0200
commitb648505349e6a92835600429249bf220c89a128c (patch)
treeaa886d2a213408c38f808fe9cc11b67f739cb611
parent617f376baf3ba826d868248cde140c12860a3260 (diff)
Make find_file() recursive.
-rw-r--r--test/test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc
index 06ec23dbc..1200e13b7 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -987,7 +987,7 @@ boost::filesystem::path
find_file (boost::filesystem::path dir, string filename_part)
{
boost::optional<boost::filesystem::path> found;
- for (auto i: boost::filesystem::directory_iterator(dir)) {
+ for (auto i: boost::filesystem::recursive_directory_iterator(dir)) {
if (i.path().filename().string().find(filename_part) != string::npos) {
BOOST_REQUIRE (!found);
found = i;