| Ticket UUID: | 0b9dc76e3e779f8db49cca4619df2e4cfb2e339e | |||
| Title: | revised_text: text-32.4 fails (recent regression) | |||
| Type: | Bug | Version: | revised_text | |
| Submitter: | fvogel | Created on: | 2019-04-17 20:28:35 | |
| Subsystem: | 18. [text] | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2019-05-09 15:00:59 | |
| Resolution: | Fixed | Closed By: | jan.nijtmans | |
| Closed on: | 2019-05-09 15:00:59 | |||
| Description: |
Test text-32.4 of the revised text widget is now failing. This didn't happen before [984939324d863f2d]. However at this commit the branch does not build. I had fixed that in the next commit ([abff3a1d]), which might be the real culprit. Failure log is as follows:
==== text-32.4 peer widget -start, -end and deletion (bug 1630262) FAILED
==== Contents of test case:
text .t
.t peer create .pt
for {set i 1} {$i < 100} {incr i} {
.t insert end "Line $i\n"
}
.t configure -startline 5 -endline 15
.pt configure -startline 8 -endline 12
# .pt now shows a range entirely inside the range of .pt
# from .t, delete lines located after [.pt cget -end]
.t delete 9.0 10.0
# from .t, delete lines straddling [.pt cget -end]
.t delete 6.0 9.0
lappend res [.t cget -start] [.t cget -end] [.pt cget -start] [.pt cget -end]
.t configure -startline 5 -endline 12
.pt configure -startline 8 -endline 12
# .pt now shows again a range entirely inside the range of .pt
# from .t, delete lines located before [.pt cget -start]
.t delete 2.0 3.0
# from .t, delete lines straddling [.pt cget -start]
.t delete 2.0 5.0
lappend res [.t cget -start] [.t cget -end] [.pt cget -start] [.pt cget -end]
.t configure -startline 22 -endline 31
.pt configure -startline 42 -endline 51
# .t now shows a range entirely before the range of .pt
# from .t, delete some lines, then do it from .pt
.t delete 2.0 3.0
.t delete 2.0 5.0
.pt delete 2.0 5.0
lappend res [.t cget -start] [.t cget -end] [.pt cget -start] [.pt cget -end]
.t configure -startline 55 -endline 75
.pt configure -startline 60 -endline 70
# .pt now shows a range entirely inside the range of .t
# from .t, delete a range straddling the entire range of .pt
.t delete 3.0 18.0
lappend res [.t cget -start] [.t cget -end] [.pt cget -start] [.pt cget -end]
---- Result was:
5 11 8 10 5 8 6 8 22 27 38 44 55 60 57 58
---- Result should have been (exact matching):
5 11 8 10 5 8 6 8 22 27 38 44 55 60 57 57
==== text-32.4 FAILED
| |||
| User Comments: |
jan.nijtmans added on 2019-05-09 15:00:59:
Well, I just came back from holiday. Glad you already solved it! fvogel added on 2019-05-09 13:25:24: Finally I had a deeper look at the problem and have found the root cause. here is the story: - [984939324d863f2d] was a merge from trunk into revised_text. In this commit, test.test receives three new tests, in particular text-32.4. - Test text-32.4 was merged (added) from core-8-6-branch into trunk by [359434f369]. - Test text-32.4 was merged (added) from branch bug-b2dd3b4fe8 into core-8-6-branch. - In that branch bug-b2dd3b4fe8 [d14eb9877f] reordered the test list in text.test on 2019-01-02 for the legacy text widget. At the time of [984939324d863f2d] the revised_text branch already contained text-32.4, but this test was modified in the revised_text branch as far as the expected results were concerned. Commit [984939324d863f2d] added a new version of text-32.4, with the expected results from the legacy text widget. File text.test now contained two versions of text-32.4, once with expected results targeted to revised_text and once with expected results targeted to the legacy text widget. The same thing happened for text-32.2, 32.3 and 32.4 (but the expected results were the same in revised_text and in the legacy version for 32.2 and 32.3, thus no error is triggered). So what happened is that the culprit commit [984939324d863f2d] merged a file text.test that should not have been merged because the merged tests were already present in the revised_text branch and files test.test had diverged in the two branches. I have fixed this in [daa40a69b0]. fvogel added on 2019-04-17 20:28:58: Assigning to you, Jan, since this appears to come out of the None --> NULL dance. Could you please have a look? | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki