diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-09-17 13:00:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-09-17 14:24:43 +0200 |
commit | d5f1b512406fa3025c91738fc3ee6bcc3a209111 (patch) | |
tree | d988e585648171cebb6c4b56b214d457e4b2d495 /tools | |
parent | 2acc0b3b6330a3550d5ddce954671ce9b8e322d3 (diff) |
Use CPPUNIT_ASSERT in test code
Change-Id: I0ac21995315e136ae0035aeaf0f6a6d1e5f5811a
Reviewed-on: https://gerrit.libreoffice.org/79055
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qa/cppunit/test_config.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/qa/cppunit/test_config.cxx b/tools/qa/cppunit/test_config.cxx index bf61b887b701..c24a30848ec4 100644 --- a/tools/qa/cppunit/test_config.cxx +++ b/tools/qa/cppunit/test_config.cxx @@ -27,10 +27,9 @@ public: maOriginalConfigFile = m_directories.getURLFromSrc("/tools/qa/data/"); maOriginalConfigFile += "testconfig.ini"; - if (osl::FileBase::getTempDirURL(maConfigFile) == osl::File::RC::E_None) - maConfigFile += "/config.ini"; - else - assert(false && "cannot create temp folder"); + auto const e = osl::FileBase::getTempDirURL(maConfigFile); + CPPUNIT_ASSERT_EQUAL_MESSAGE("cannot create temp folder", osl::File::RC::E_None, e); + maConfigFile += "/config.ini"; osl::File::copy(maOriginalConfigFile, maConfigFile); } |