teat application: Prevent copying dir entries

experiment/srcref_basic_cfg
Martchus 5 years ago
parent 9fb347db24
commit 6fd2603cff
  1. 2
      tests/testutils.cpp

@ -423,7 +423,7 @@ void TestApplication::readFallbackTestfilePathFromSrcRef()
// check whether the referenced source directory contains a "testfiles" directory
#ifdef PLATFORM_UNIX // directoryEntries() is not implemented under Windows so we can only to the check under UNIX
bool hasTestfilesDir = false;
for (const string dir : directoryEntries(srcDirContent.data(), DirectoryEntryType::Directory)) {
for (const string &dir : directoryEntries(srcDirContent.data(), DirectoryEntryType::Directory)) {
if (dir == "testfiles") {
hasTestfilesDir = true;
break;

Loading…
Cancel
Save