summaryrefslogtreecommitdiff
path: root/shell/qa
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-07-18 11:30:10 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-07-18 12:27:33 +0200
commitcfda5af070ef3dff4f7a8cd638be9c1cb5519a82 (patch)
treeef00222b80d3c13b5f3fd9c23449ad15ac04d692 /shell/qa
parent389f017ab17f9ebc613994b9af7c71f9219baf70 (diff)
Trying to resurect the zip test
Change-Id: Ic022f25a4f8d69b8d60bea7974900db5223e1251
Diffstat (limited to 'shell/qa')
-rw-r--r--shell/qa/zip/ziptest.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/shell/qa/zip/ziptest.cxx b/shell/qa/zip/ziptest.cxx
index bea0458e1222..457833afb2fd 100644
--- a/shell/qa/zip/ziptest.cxx
+++ b/shell/qa/zip/ziptest.cxx
@@ -45,9 +45,15 @@ public:
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
-Test::Test() :
- documentName("simpledocument.odt")
+Test::Test() : documentName()
{
+ const char* pSrcRoot = getenv( "SRC_ROOT" );
+ if (pSrcRoot)
+ {
+ documentName.append(pSrcRoot);
+ documentName.append("/");
+ }
+ documentName.append("shell/qa/zip/simpledocument.odt");
}
void Test::test_directory()
@@ -66,9 +72,9 @@ void Test::test_hasContentCaseInSensitive()
void Test::test_getContent()
{
- TestZipImpl testImpl(documentName.c_str());
- bool isPassed = testImpl.test_getContent();
- CPPUNIT_ASSERT_MESSAGE("Couldn't receive content buffer form zipfile.", isPassed);
+ TestZipImpl testImpl(documentName.c_str());
+ bool isPassed = testImpl.test_getContent();
+ CPPUNIT_ASSERT_MESSAGE("Couldn't receive content buffer form zipfile.", isPassed);
}
CPPUNIT_PLUGIN_IMPLEMENT();