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:
parent
56ec0f94b3
commit
2a7c71bef0
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user