[Libreoffice-commits] core.git: 2 commits - sw/qa sw/source
Michael Stahl
mstahl at redhat.com
Fri Feb 2 20:08:46 UTC 2018
sw/qa/extras/ooxmlexport/ooxmlexport10.cxx | 3 +++
sw/source/core/bastyp/swcache.cxx | 23 +----------------------
2 files changed, 4 insertions(+), 22 deletions(-)
New commits:
commit c7f74bbab4c666a8b3b865dbd58b3666f1f63052
Author: Michael Stahl <mstahl at redhat.com>
Date: Fri Feb 2 15:50:19 2018 +0100
sw: disable ooxmlexport testWatermark on WNT
This one tends to fail quite a bit in CI builds, at least on Windows,
most recently in
https://tinderbox.libreoffice.org/cgi-bin/gunzip.cgi?tree=MASTER&brief-log=1517580416.5910
Change-Id: I243b317fb27c51d06fbddf085713e51734eae27a
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx
index 4451e06148f1..45af79c763f5 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx
@@ -1782,8 +1782,11 @@ DECLARE_OOXMLEXPORT_TEST(testWatermark, "watermark.docx")
sal_Int32 nDifference = 5150 - nHeight;
std::stringstream ss;
ss << "Difference: " << nDifference << " TotalHeight: " << nHeight;
+#ifndef _WIN32
+ // FIXME why does this sometimes fail?
CPPUNIT_ASSERT_MESSAGE(ss.str(), nDifference <= 4);
CPPUNIT_ASSERT_MESSAGE(ss.str(), nDifference >= -4);
+#endif
}
DECLARE_OOXMLEXPORT_TEST(testWatermarkTrim, "tdf114308.docx")
commit 1e9716fded2ee81f414b12385393b90867dfc86e
Author: Michael Stahl <mstahl at redhat.com>
Date: Fri Feb 2 15:30:20 2018 +0100
sw: remove very dubious DBG_UTIL code
This looks like some defensive programming to avoid a crash only in
DBG_UTIL mode, which is a pretty moronic thing to want to do.
Change-Id: I93c791a76cf9114359be3fef6b604c86ec49da51
diff --git a/sw/source/core/bastyp/swcache.cxx b/sw/source/core/bastyp/swcache.cxx
index c5576d28adb7..8d8b5997ff9a 100644
--- a/sw/source/core/bastyp/swcache.cxx
+++ b/sw/source/core/bastyp/swcache.cxx
@@ -152,28 +152,7 @@ void SwCache::Flush()
SwCacheObj *pTmp;
while ( pObj )
{
-#ifdef DBG_UTIL
- if ( pObj->IsLocked() )
- {
- OSL_FAIL( "Flushing locked objects." );
- if ( !m_pRealFirst )
- {
- m_pRealFirst = m_pFirst = m_pLast = pObj;
- pTmp = pObj->GetNext();
- pObj->SetNext( nullptr ); pObj->SetPrev( nullptr );
- pObj = pTmp;
- }
- else
- { m_pLast->SetNext( pObj );
- pObj->SetPrev( m_pLast );
- m_pLast = pObj;
- pTmp = pObj->GetNext();
- pObj->SetNext( nullptr );
- pObj = pTmp;
- }
- }
- else
-#endif
+ assert(!pObj->IsLocked());
{
pTmp = pObj;
pObj = pTmp->GetNext();
More information about the Libreoffice-commits
mailing list