sw/qa/extras/uiwriter/uiwriter.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 776ed782e0923034638b6d7e55b6dd50d90a61fe Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Tue Jul 28 11:43:26 2020 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Jul 28 22:03:47 2020 +0200 CppunitTest_sw_uiwriter: reset the redline author after using it See http://document-foundation-mail-archive.969070.n3.nabble.com/CppunitTest-different-results-depending-on-execution-command-td4283987.html Change-Id: I16f07232611d3d2cec675f34f0f93aee9618d80f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99585 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> (cherry picked from commit 720b3c133cc6348537b4d013b4531856f73b392d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99645 Reviewed-by: Michael Stahl <michael.st...@cib.de> diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index f3d92a4c0050..1dae7b7dce99 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -5504,6 +5504,10 @@ void SwUiWriterTest::testRedlineViewAuthor() uno::Reference<beans::XPropertySet> xField(xFields->nextElement(), uno::UNO_QUERY); // This was 'Unknown Author' instead of 'A U. Thor'. CPPUNIT_ASSERT_EQUAL(aAuthor, xField->getPropertyValue("Author").get<OUString>()); + + //Reset the redline author after using it, otherwise, it might interfere with other unittests + pView->SetRedlineAuthor("Unknown Author"); + pDocShell->SetView(pView); } void SwUiWriterTest::testTdf91292() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits