https://bugs.kde.org/show_bug.cgi?id=527388

            Bug ID: 527388
           Summary: scripttester_test fails with Qt 6.12.0.
    Classification: Frameworks and Libraries
           Product: frameworks-ktexteditor
      Version First 6.24.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 197315
  --> https://bugs.kde.org/attachment.cgi?id=197315&action=edit
LastTest.log

DESCRIPTION

scripttester_test test fails with Qt 6.12.0.

STEPS TO REPRODUCE
1.  Build ktexteditor 6.24.0 with qt 6.12.0
2. run tests

OBSERVED RESULT
The following tests FAILED:
         46 - scripttester_test (Failed)

EXPECTED RESULT

Test suite passes.

SOFTWARE/OS VERSIONS
Operating System: Guix System
KDE Plasma Version: N/A
KDE Frameworks Version: 6.24.0
Qt Version:  6.12.0

ADDITIONAL INFORMATION
Excerpt from from LastTest.log (attached).
```
--- /tmp/guix-build-ktexteditor-6.24.0.drv-0/scripttester_testCase_expected.txt
2026-10-18 23:38:22.700166565 +0000
+++ /tmp/guix-build-ktexteditor-6.24.0.drv-0/scripttester_testCase_result.txt  
2026-10-18 23:38:22.700154925 +0000
@@ -1,5 +1,5 @@
 <fileName>myfile</>:<lineNumber>5</>: <testName>MyTest</>: <error>Result
differs
-<error>cmd `</><program>foo() ===
{expectedResult}</><error>`</><blockSelectionInfo> [blockSelection=0]</>:
+<error>cmd `</><program>foo() === {expectedResult}</><error>`</><error> --
undefined</><blockSelectionInfo> [blockSelection=0]</>:
 <labelInfo>  input:    </><result>abc</><rep>\n</><result>def</><cursor>|</>
 <labelInfo>  output:   </><result>abc</><rep>\n</><result>def</><cursor>|</>
   ---------
@@ -8,7 +8,7 @@
             <carret>^~~</>

 <fileName>myfile</>:<lineNumber>6</>: <testName>MyTest</>: <error>Output and
Result differs
-<error>cmd `</><program>foo() ===
{expectedResult}</><error>`</><blockSelectionInfo> [blockSelection=0]</>:
+<error>cmd `</><program>foo() === {expectedResult}</><error>`</><error> --
undefined</><blockSelectionInfo> [blockSelection=0]</>:
   input:    <result>abc</><cursor>|</>
   output:   <result>abc</><cursor>|</>
   expected: <result>abc</><rep>\n</><result>def</><cursor>|</>
@@ -19,7 +19,7 @@
             <carret>^~~</>

 <fileName>myfile</>:<lineNumber>8</>: <testName>MyTest</>: <error>Output
differs
-<error>cmd `</><program>foo()</><error>`</><blockSelectionInfo>
[blockSelection=1]</>:
+<error>cmd `</><program>foo()</><error>`</><error> --
undefined</><blockSelectionInfo> [blockSelection=1]</>:
   input:   
<result>abcxx</><blockSelection>[</><result><inSelection>xxxxxxx</><cursor><inSelection>|</><selection>]</><rep>↵</>
             <result>daa
a</><blockSelection>[</><result><inSelection>aa</></><virtualText><inSelection>@@@@@</><blockSelection>]</><rep>↵</>
            
<result>daaaa</><selection>[</><result><inSelection>aaaaaef</><blockSelection>]</>
FAIL!  : ScriptTesterTest::testPrintExpression() Compared values are not the
same
   Actual   (proc.exitCode()): 1
   Expected (0)              : 0
   Loc:
[/tmp/guix-build-ktexteditor-6.24.0.drv-0/ktexteditor-6.24.0/autotests/src/scripttester_test.cpp(106)]
---
/tmp/guix-build-ktexteditor-6.24.0.drv-0/scripttester_withInput_expected.txt   
    2026-10-18 23:38:22.702461072 +0000
+++ /tmp/guix-build-ktexteditor-6.24.0.drv-0/scripttester_withInput_result.txt 
2026-10-18 23:38:22.702454832 +0000
@@ -1,13 +1,13 @@
 <fileName>myfile</>:<lineNumber>4</><debugMsg>:
</><debugMarker>PRINT:</><debugMsg> print</>
 <fileName>myfile</>:<lineNumber>6</>: <testName>MyTest2</>: <error>Output
differs
-<error>cmd `</><program>foo()</><error>`</><blockSelectionInfo>
[blockSelection=0]</>:
+<error>cmd `</><program>foo()</><error>`</><error> --
undefined</><blockSelectionInfo> [blockSelection=0]</>:
   input:    <result>abc</><cursor>|</>
   output:   <result>abc</><cursor>|</>
   expected: <result>abc</><rep>\n</><result>def</><cursor>|</>
                <carret>^~~</>

 <fileName>myfile</>:<lineNumber>7</>: <testName>MyTest2</>: <error>Output and
Result differs
-<error>cmd `</><program>foo() ===
{expectedResult}</><error>`</><blockSelectionInfo> [blockSelection=0]</>:
+<error>cmd `</><program>foo() === {expectedResult}</><error>`</><error> --
undefined</><blockSelectionInfo> [blockSelection=0]</>:
   input:    <result>abc</><cursor>|</>
   output:   <result>abc</><cursor>|</>
   expected: <result>abc</><rep>\n</><result>def</><cursor>|</>
@@ -18,7 +18,7 @@
             <carret>^~~</>

 <fileName>myfile</>:<lineNumber>8</>: <testName>MyTest2</>: <error>Result
differs
-<error>test `</><program>foo() < {expected}</><error>`</><blockSelectionInfo>
[blockSelection=0]</>:
+<error>test `</><program>foo() < {expected}</><error>`</><error> --
undefined</><blockSelectionInfo> [blockSelection=0]</>:
   result:   <result>true</>
   expected: <result>1</>
             <carret>^~~</>
FAIL!  : ScriptTesterTest::testPrintExpression() Compared values are not the
same
   Actual   (proc.exitCode()): 1
   Expected (0)              : 0
   Loc:
[/tmp/guix-build-ktexteditor-6.24.0.drv-0/ktexteditor-6.24.0/autotests/src/scripttester_test.cpp(106)]
PASS   : ScriptTesterTest::cleanupTestCase()
Totals: 3 passed, 1 failed, 0 skipped, 0 blacklisted, 27ms
********* Finished testing of ScriptTesterTest *********
<end of output>
Test time =   0.05 sec
----------------------------------------------------------
Test Failed.
"scripttester_test" end time: Oct 18 23:38 UTC
"scripttester_test" time elapsed: 00:00:00
----------------------------------------------------------
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to