summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-19 19:50:14 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-19 19:50:14 (GMT)
commitfffffda255d80a56def292a9f7adf101382bee1a (patch)
treefe10f9559c04f57873ccd26e07157bcf9de6aa56 /Swiften/Application/UnitTest
parent72d22d91c99e2b1bd3c2abc712195111a434fcfc (diff)
downloadswift-contrib-fffffda255d80a56def292a9f7adf101382bee1a.zip
swift-contrib-fffffda255d80a56def292a9f7adf101382bee1a.tar.bz2
Added getExecutablePath().
Diffstat (limited to 'Swiften/Application/UnitTest')
-rw-r--r--Swiften/Application/UnitTest/ApplicationPathProviderTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Swiften/Application/UnitTest/ApplicationPathProviderTest.cpp b/Swiften/Application/UnitTest/ApplicationPathProviderTest.cpp
index 7cb277a..75b8639 100644
--- a/Swiften/Application/UnitTest/ApplicationPathProviderTest.cpp
+++ b/Swiften/Application/UnitTest/ApplicationPathProviderTest.cpp
@@ -8,12 +8,14 @@
#include <cppunit/extensions/TestFactoryRegistry.h>
#include "Swiften/Application/PlatformApplicationPathProvider.h"
+#include "Swiften/Base/String.h"
using namespace Swift;
class ApplicationPathProviderTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(ApplicationPathProviderTest);
CPPUNIT_TEST(testGetSettingsDir);
+ CPPUNIT_TEST(testGetExecutableDir);
CPPUNIT_TEST_SUITE_END();
public:
@@ -33,6 +35,12 @@ class ApplicationPathProviderTest : public CppUnit::TestFixture {
boost::filesystem::remove(dir);
}
+
+ void testGetExecutableDir() {
+ boost::filesystem::path dir = testling_->getExecutableDir();
+ CPPUNIT_ASSERT(boost::filesystem::is_directory(dir));
+ CPPUNIT_ASSERT(String(dir.string()).endsWith("UnitTest"));
+ }
private:
ApplicationPathProvider* testling_;