tst_bench_qdiriterator: fix build on VxWorks

By removing fs::directory_options::skip_permission_denied which isn't
available on VxWorks.

It's not strictly needed for the benchmark. I had added it to test
locally by listing some dirs under '/' (not all of them are readable for
users), and saw no reason at the time to remove it. The benchmark itself
listing dirs in the qtbase source dir tree.

Pick-to: 6.7
Task-number: QTBUG-115777
Change-Id: I4e68d01abd707dbf553f0a5832739ef0f4c9d585
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Ahmad Samir 2024-04-13 15:04:16 +02:00
parent 56ec0f94b3
commit 2a7c71bef0

View File

@ -269,8 +269,7 @@ void tst_QDirIterator::stdRecursiveDirectoryIterator()
// than the other methods in this source file.
QBENCHMARK {
int c = 0;
for (const auto &dirEntry : fs::recursive_directory_iterator(
dirpath.data(), fs::directory_options::skip_permission_denied, ec)) {
for (const auto &dirEntry : fs::recursive_directory_iterator(dirpath.data(), ec)) {
if (dirEntry.is_directory())
continue;
c++;