Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 036ef4646bcc51f768b6c9c00177a45187105f83374ee635af2beed1c1fbb140
Ticket: 55e467df3275015a0a8608242aa446e8441e85f0
New Tk test suite errors with Tcl9
User & Date: fvogel on 2021-04-18 12:44:24
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    With Tcl 9 ('main' branch), but not with Tcl 8.7, the test suite for branch 'revised_text' in Tk outputs three errors that do not happen in other environments:
    
    <verbatim>
    ==== text-22.126 TextSearchCmd, wrapping and limits FAILED
    ==== Contents of test case:
    
        pack [text .t]
        .t insert end "if (stringPtr->uallocated > 0) \{x"
        .t search -backwards -regexp -- "\[\]\")\}\[(\{\]" "1.32" 1.0
    
    ---- Result was:
    1.3
    ---- Result should have been (exact matching):
    1.31
    ==== text-22.126 FAILED
    
    ==== text-22.128 TextSearchCmd, wrapping and limits FAILED
    ==== Contents of test case:
    
        pack [text .t]
        .t insert end "if (stringPtr->uallocated > 0) \{x"
        .t search -backwards -all -regexp -- "\[\]\")\}\[(\{\]" "1.32" 1.0
    
    ---- Result was:
    1.3
    ---- Result should have been (exact matching):
    1.31 1.29 1.3
    ==== text-22.128 FAILED
    
    ==== text-22.129 TextSearchCmd, wrapping and limits FAILED
    ==== Contents of test case:
    
        pack [text .t]
        .t insert end "if (stringPtr->uallocated > 0) \{x"
        .t search -all -regexp -- "\[\]\")\}\[(\{\]" 1.0 "1.0 lineend"
    
    ---- Result was:
    1.3
    ---- Result should have been (exact matching):
    1.3 1.29 1.31
    ==== text-22.129 FAILED
    </verbatim>
    
    This does not happen when Tk 'revised_text' branch is linked to Tcl 8.7 ('core-8-branch' branch).
    
    I can see this on Window 10 and this is also demonstrated on Linux on [https://github.com/tcltk/tk/runs/2373021268?check_suite_focus=true|GitHub Actions].
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "fvogel"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a013af67114eccc19ad12b04f14923acea9e96b7"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "fvogel"
  14. subsystem changed to: "None"
  15. title changed to: "New Tk test suite errors with Tcl9"
  16. type changed to: "Bug"