Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Dec 9, 2019
1 parent e886f9c commit 921fb66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tests/src/testsutils.cpp
Expand Up @@ -156,12 +156,6 @@ int runCli(const QStringList &pArguments, QStringList &pOutput)
output += process.readAll();
}

// Go back to our original directory

#ifdef Q_OS_WIN
QDir::setCurrent(origPath);
#endif

// Clean up our output by:
// - Making any path relative rather than absolute;
// - Replacing backslashes with forward slashes; and
Expand All @@ -172,6 +166,12 @@ int runCli(const QStringList &pArguments, QStringList &pOutput)
.remove('\r')
.split('\n');

// Go back to our original directory

#ifdef Q_OS_WIN
QDir::setCurrent(origPath);
#endif

return process.exitCode();
}

Expand Down

0 comments on commit 921fb66

Please sign in to comment.