Commit e8e4df0f authored by David Schulz's avatar David Schulz Committed by Christian Stenger

Core: Fix locator file filter test.

Use forward slashes as separator in the test data.

Change-Id: Ib832f0c72dc1694b2b2e230e32a274b96956c44b
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent a74dc14e
......@@ -105,9 +105,9 @@ void Core::Internal::CorePlugin::test_basefilefilter_data()
const QChar pathSeparator = QDir::separator();
const MyTestDataDir testDir(QLatin1String("testdata_basic"));
const QStringList testFiles = QStringList()
<< QDir::toNativeSeparators(testDir.file(QLatin1String("file.cpp")))
<< QDir::toNativeSeparators(testDir.file(QLatin1String("main.cpp")))
<< QDir::toNativeSeparators(testDir.file(QLatin1String("subdir/main.cpp")));
<< QDir::fromNativeSeparators(testDir.file(QLatin1String("file.cpp")))
<< QDir::fromNativeSeparators(testDir.file(QLatin1String("main.cpp")))
<< QDir::fromNativeSeparators(testDir.file(QLatin1String("subdir/main.cpp")));
QStringList testFilesShort;
foreach (const QString &file, testFiles)
testFilesShort << Utils::FileUtils::shortNativePath(Utils::FileName::fromString(file));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment