teat application: Prevent copying dir entries
This commit is contained in:
parent
9fb347db24
commit
6fd2603cff
|
@ -423,7 +423,7 @@ void TestApplication::readFallbackTestfilePathFromSrcRef()
|
||||||
// check whether the referenced source directory contains a "testfiles" directory
|
// 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
|
#ifdef PLATFORM_UNIX // directoryEntries() is not implemented under Windows so we can only to the check under UNIX
|
||||||
bool hasTestfilesDir = false;
|
bool hasTestfilesDir = false;
|
||||||
for (const string dir : directoryEntries(srcDirContent.data(), DirectoryEntryType::Directory)) {
|
for (const string &dir : directoryEntries(srcDirContent.data(), DirectoryEntryType::Directory)) {
|
||||||
if (dir == "testfiles") {
|
if (dir == "testfiles") {
|
||||||
hasTestfilesDir = true;
|
hasTestfilesDir = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue