mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Merge pull request #1487 from nextcloud/testSyncFileStatusTracker-winPath
Fix tests for Windows platform
This commit is contained in:
commit
325dd8732e
2 changed files with 5 additions and 1 deletions
|
@ -288,7 +288,11 @@ void ExcludedFiles::addManualExclude(const QByteArray &expr)
|
|||
|
||||
void ExcludedFiles::addManualExclude(const QByteArray &expr, const QByteArray &basePath)
|
||||
{
|
||||
#if defined(Q_OS_WIN)
|
||||
Q_ASSERT(basePath.size() >= 2 && basePath.at(1) == ':');
|
||||
#else
|
||||
Q_ASSERT(basePath.startsWith('/'));
|
||||
#endif
|
||||
Q_ASSERT(basePath.endsWith('/'));
|
||||
|
||||
auto key = basePath;
|
||||
|
|
|
@ -146,7 +146,7 @@ private slots:
|
|||
mkdir(_rootPath + "/a0/b");
|
||||
mkdir(_rootPath + "/a0/b/c");
|
||||
touch(file);
|
||||
mv(_rootPath + "/a0 ", _rootPath + "/a");
|
||||
mv(_rootPath + "/a0", _rootPath + "/a");
|
||||
QVERIFY(waitForPathChanged(_rootPath + "/a/b/c/empty.txt"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue