[Libreoffice-commits] core.git: unotest/source

Stephan Bergmann sbergman at redhat.com
Fri Sep 27 06:18:04 PDT 2013


 unotest/source/cpp/bootstrapfixturebase.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 95f56095a903fac5d6c1271a2e6229f6de89384c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Sep 27 15:07:17 2013 +0200

    Can use CppUnit assert functionality here
    
    Change-Id: Iecc42e79b72e99f9222ba2419226b0f655a5af7d

diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx
index 74fb3ab..fff21d4 100644
--- a/unotest/source/cpp/bootstrapfixturebase.cxx
+++ b/unotest/source/cpp/bootstrapfixturebase.cxx
@@ -9,8 +9,6 @@
 
 #include "sal/config.h"
 
-#include <cassert>
-
 #include <unotest/bootstrapfixturebase.hxx>
 #include <osl/file.hxx>
 #include <rtl/strbuf.hxx>
@@ -29,7 +27,7 @@ namespace {
 OUString getFileURLFromSystemPath(OUString const & path) {
     OUString url;
     osl::FileBase::RC e = osl::FileBase::getFileURLFromSystemPath(path, url);
-    assert(e == osl::FileBase::E_None);
+    CPPUNIT_ASSERT_EQUAL(osl::FileBase::E_None, e);
     if (!url.endsWith("/")) {
         url += "/";
     }


More information about the Libreoffice-commits mailing list