Kaydet (Commit) 95f56095 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Can use CppUnit assert functionality here

Change-Id: Iecc42e79b72e99f9222ba2419226b0f655a5af7d
üst 337e983a
......@@ -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 += "/";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment