Skip to content
Snippets Groups Projects
Commit e4a0bdd8 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

vcs: better sanity checking


Change-Id: I1d3b347d291e9f5bc6a873e5c99506371749c0ef
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 7d3ba0e9
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,9 @@ public: ...@@ -128,7 +128,9 @@ public:
QTC_ASSERT(QDir(dir).isAbsolute(), return); QTC_ASSERT(QDir(dir).isAbsolute(), return);
QTC_ASSERT(!dir.endsWith(QLatin1Char('/')), return); QTC_ASSERT(!dir.endsWith(QLatin1Char('/')), return);
QTC_ASSERT(QDir::fromNativeSeparators(dir) == dir, return); QTC_ASSERT(QDir::fromNativeSeparators(dir) == dir, return);
QTC_ASSERT(dir.startsWith(topLevel + QLatin1Char('/')) || topLevel == dir, return); QTC_ASSERT(dir.startsWith(topLevel + QLatin1Char('/'))
|| topLevel == dir || topLevel.isEmpty(), return);
QTC_ASSERT((topLevel.isEmpty() && !vc) || (!topLevel.isEmpty() && vc), return);
VcsInfo *newInfo = new VcsInfo(vc, topLevel); VcsInfo *newInfo = new VcsInfo(vc, topLevel);
bool createdNewInfo(true); bool createdNewInfo(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment