summaryrefslogtreecommitdiff
path: root/sc/qa/unit/ucalc.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-02-21 23:14:06 +0100
committerHenry Castro <hcastro@collabora.com>2017-05-03 13:37:02 -0400
commit5b2827ced1d0610b2bff8ccc62d5f745513d7e91 (patch)
treef78ae00884bf8707cb3c3c231fc40ee420762b77 /sc/qa/unit/ucalc.cxx
parentcd343b2da25e902d5e6397cc3e43b28fd253bd62 (diff)
do not test for different caption pointers ...
... if it's not guaranteed they may not be identical. Change-Id: Ieb4b0eb07a1b1832df65dde3c2e5a92b5121a162
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r--sc/qa/unit/ucalc.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index fabef735b873..5ad2df33d7d1 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -5189,7 +5189,9 @@ void Test::testNoteLifeCycle()
CPPUNIT_ASSERT_MESSAGE("Failed to paste cell comment at B5.", pNoteB5);
const SdrCaptionObj* pCaptionB5 = pNoteB5->GetOrCreateCaption(aPosB5);
CPPUNIT_ASSERT_MESSAGE("No caption at pasted B5.", pCaptionB5);
- CPPUNIT_ASSERT_MESSAGE("Captions not different after Paste.", pCaptionB5 != pOtherCaptionB5);
+ // Do not test if pCaptionB5 != pOtherCaptionB5 because since pDoc2
+ // has been closed and the caption been deleted objects *may* be
+ // allocated at the very same memory location.
}
m_pDoc->DeleteTab(0);