summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlban Crequy <alban.crequy@collabora.co.uk>2012-02-08 14:01:50 +0000
committerAlban Crequy <alban.crequy@collabora.co.uk>2012-02-08 14:14:03 +0000
commit6673539b3e39a8f9d3ab0a1db5dcd87aa5c9d4cc (patch)
treebae5702647f9ebfd224aff30d1b0f220e1a4a119 /tests
parent662da02395052cd3db0456d10804b76579fdcdb1 (diff)
Tests: use QCoreApplication::applicationFilePath instead of hardcoded binary names
Reviewed-by: Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus/account-channel-dispatcher.cpp2
-rw-r--r--tests/file-transfer-channel-creation-properties.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/dbus/account-channel-dispatcher.cpp b/tests/dbus/account-channel-dispatcher.cpp
index d21e911a..bf3e8f8e 100644
--- a/tests/dbus/account-channel-dispatcher.cpp
+++ b/tests/dbus/account-channel-dispatcher.cpp
@@ -554,7 +554,7 @@ void TestAccountChannelDispatcher::init()
mChanPath.clear();
mChanProps.clear();
- mFilePath = QDir::currentPath() + QLatin1String("/test-account-channel-dispatcher");
+ mFilePath = QCoreApplication::applicationFilePath();
}
void TestAccountChannelDispatcher::testPCR(PendingChannelRequest *pcr)
diff --git a/tests/file-transfer-channel-creation-properties.cpp b/tests/file-transfer-channel-creation-properties.cpp
index aa63080f..182b23db 100644
--- a/tests/file-transfer-channel-creation-properties.cpp
+++ b/tests/file-transfer-channel-creation-properties.cpp
@@ -97,7 +97,7 @@ void TestFileTransferCreationProperties::testFileTransferCreationPropertiesDefau
void TestFileTransferCreationProperties::testFileTransferCreationPropertiesDefaultByPath()
{
// Test constructor by local file path with existing file
- QString filePath = QDir::currentPath() + QLatin1String("/test-file-transfer-channel-creation-properties");
+ QString filePath = QCoreApplication::applicationFilePath();
QFileInfo fileInfo(filePath);
QUrl fileUri = QUrl::fromLocalFile(filePath);