vcl/source/uitest/uno/uiobject_uno.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 74895033b99ba8b1496dc71699f52402b6d3db11
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Sep 8 11:14:56 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Sep 8 12:28:44 2023 +0200

    add SAL_WARN to UIObjectUnoObj::getChild
    
    to help track down an intermittent UITest failure on jenkins, which
    would otherwise assert inside the UIObjectUnoObj constructor
    
    Change-Id: I1b06c1eef5fe3402857b7a300decd48488ec621c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156698
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/source/uitest/uno/uiobject_uno.cxx 
b/vcl/source/uitest/uno/uiobject_uno.cxx
index 0d23fe9272a7..1a59520f1943 100644
--- a/vcl/source/uitest/uno/uiobject_uno.cxx
+++ b/vcl/source/uitest/uno/uiobject_uno.cxx
@@ -56,6 +56,7 @@ css::uno::Reference<css::ui::test::XUIObject> SAL_CALL 
UIObjectUnoObj::getChild(
 {
     SolarMutexGuard aGuard;
     std::unique_ptr<UIObject> pObj = mpObj->get_child(rID);
+    SAL_WARN_IF(!pObj, "vcl", "child " << rID << " of parent " << 
mpObj->dumpState() << " does not exist");
     return new UIObjectUnoObj(std::move(pObj));
 }
 

Reply via email to