sw/qa/uitest/writer_tests4/spellDialog.py |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit d2614337e8291b9b6d114fda5ae914f6940c353a
Author:     László Németh <nem...@numbertext.org>
AuthorDate: Mon Jan 2 18:57:48 2023 +0100
Commit:     László Németh <nem...@numbertext.org>
CommitDate: Tue Jan 3 11:25:41 2023 +0000

    tdf#65535 sw spellDialog.py: add same latency to fix lo-upsan build
    
    The problem reported by Stephan Bergmann:
    
     FAIL: test_tdf65535 (spellDialog.SpellingAndGrammarDialog)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File 
"/home/tdf/lode/jenkins/workspace/lo_ubsan/sw/qa/uitest/writer_tests4/spellDialog.py",
 line 237, in test_tdf65535
          self.assertEqual("Bad baad", output_text)
      AssertionError: 'Bad baad' != 'Baad baad'
      - Bad baad
      + Baad baad
      ?   +
    
    Change-Id: Icd656544946f3d6b67fefd9980872bbee6608fab
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144964
    Tested-by: Jenkins
    Reviewed-by: László Németh <nem...@numbertext.org>

diff --git a/sw/qa/uitest/writer_tests4/spellDialog.py 
b/sw/qa/uitest/writer_tests4/spellDialog.py
index d7990cdf494e..9fd9d16cee74 100644
--- a/sw/qa/uitest/writer_tests4/spellDialog.py
+++ b/sw/qa/uitest/writer_tests4/spellDialog.py
@@ -233,6 +233,10 @@ frog, dogg, catt"""
                 change = xDialog.getChild('change')
                 change.executeAction("CLICK", ())
 
+            # fix UPSAN build
+            import time
+            time.sleep(0.2)
+
             output_text = document.Text.getString()
             self.assertEqual("Bad baad", output_text)
 

Reply via email to