summaryrefslogtreecommitdiff
path: root/tubes/qa/test_manager.cxx
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-03-22 11:22:44 +0000
committerMatúš Kukan <matus.kukan@gmail.com>2012-07-17 16:39:30 +0200
commitc80787cd82769cd1063987dcf0a5b1bd366e056e (patch)
tree2bb419121f486af6d2157bc3492025ec07d1f9ff /tubes/qa/test_manager.cxx
parentbbfc386f54b4b6ca17431e187f161858a3b80976 (diff)
tubes: Give a useful error when test-config.ini is missing.
Diffstat (limited to 'tubes/qa/test_manager.cxx')
-rw-r--r--tubes/qa/test_manager.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/tubes/qa/test_manager.cxx b/tubes/qa/test_manager.cxx
index f7461ba1730c..ea5806d83a89 100644
--- a/tubes/qa/test_manager.cxx
+++ b/tubes/qa/test_manager.cxx
@@ -88,6 +88,7 @@ public:
private:
// XXX The Jabber accounts specified in test-config.ini need to be setup in
// Empathy, enabled, connected, and on each other's rosters.
+ rtl::OUString maTestConfigIniURL;
rtl::Bootstrap maTestConfig;
rtl::OUString maAcc1;
@@ -101,12 +102,15 @@ static TeleManager* mpManager2 = NULL;
static sal_uInt32 nSentPackets = 0;
TestTeleTubes::TestTeleTubes()
- : maTestConfig(getURLFromSrc("/tubes/test-config.ini"))
+ : maTestConfigIniURL(getURLFromSrc("/tubes/qa/test-config.ini")),
+ maTestConfig(maTestConfigIniURL)
{
TeleManager::addSuffixToNames( "TeleTest");
- CPPUNIT_ASSERT( maTestConfig.getFrom("offerer", maAcc1));
- CPPUNIT_ASSERT( maTestConfig.getFrom("accepter", maAcc2));
+ CPPUNIT_ASSERT_MESSAGE( "See README for how to set up test-config.ini",
+ maTestConfig.getFrom("offerer", maAcc1));
+ CPPUNIT_ASSERT_MESSAGE( "See README for how to set up test-config.ini",
+ maTestConfig.getFrom("accepter", maAcc2));
}
TestTeleTubes::~TestTeleTubes()