summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-04 17:04:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-06 13:21:05 +0100
commita1ac293aae7d898190733e55512cc30afef05599 (patch)
tree9f6ce31eb5025f0b2ca6896357cc6fb5b774ad48 /sc
parent5bd55c22c1bd3e4daed48f9c162557dc9161d4ac (diff)
intermittent CppunitTest_sc_macros_test failure
seen as: C:/cygwin/home/tdf/lode/jenkins/workspace/gerrit_windows/sc/qa/extras/vba-macro-test.cxx(596) : error : Assertion Test name: VBAMacroTest::testVba equality assertion failed - Expected: OK - Actual : Test Results ============ Failed: : Test change event for Range.Clear set: Failed: : Test change event for Range.ClearContents set: Failed: : Test change event for Range.Replace: Failed: : Test change event for Range.FillRight: Tests passed: 4 Tests failed: 4 - script reported failure in file Ranges-3.xls Failures !!! Run: 39 Failure total: 1 Failures: 1 Errors: 0 try this alternative to see if it makes a difference Change-Id: Id4675635e5740fdd9e4b199b603223a95a379960 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129501 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/extras/vba-macro-test.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/qa/extras/vba-macro-test.cxx b/sc/qa/extras/vba-macro-test.cxx
index 33a003e19db2..a611e9f5cc08 100644
--- a/sc/qa/extras/vba-macro-test.cxx
+++ b/sc/qa/extras/vba-macro-test.cxx
@@ -11,6 +11,7 @@
#include <test/unoapi_test.hxx>
#include <osl/file.hxx>
#include <sal/log.hxx>
+#include <vcl/scheduler.hxx>
#include <vcl/svapp.hxx>
#include <viewdata.hxx>
#include <tabvwsh.hxx>
@@ -564,10 +565,10 @@ void VBAMacroTest::testVba()
uno::Reference<css::lang::XComponent> xComponent
= loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument");
- // process all events such as OnLoad events etc.
- // otherwise they tend to arrive later at a random
- // time - while processing other StarBasic methods.
- Application::Reschedule(true);
+ // process all events such as OnLoad events etc. otherwise they tend
+ // to arrive later at a random time - while processing other StarBasic
+ // methods.
+ Scheduler::ProcessEventsToIdle();
uno::Any aRet;
uno::Sequence<sal_Int16> aOutParamIndex;