From b648505349e6a92835600429249bf220c89a128c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 May 2023 23:13:53 +0200 Subject: Make find_file() recursive. --- test/test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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; -- cgit v1.2.3