Skip to content
Tcl Source Code History Of Ticket 3ae1251264
Login

History Of Ticket 3ae1251264

Artifacts Associated With Ticket 3ae1251264

  1. Ticket change [c684bfc3b2] (rid 156701) by andy on 2017-09-20 18:03:12:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Check-in [45c4e5f731] on the amg-string-insert branch altered the way string.test is executed so that both bytecoded and non-bytecoded implementations would be tested.  The design approach was lifted from basic.test, namely to run all commands under test using a new [run] command which is [interp alias]'ed to [if 1] or [testevalex].
      
      This change causes test string-29.6 to fail.  The test in question calls [tcl::unsupported::representation] to confirm that a string representation is not needlessly being generated when using [string cat] to concatenate an empty list with a pure list.  When [string cat] is called directly, or when called as the argument to [if 1], it works correctly.  But when [string cat] is called by an interpreter alias to [if 1], the string representation is produced, causing the test to fail.
      
      For more information, see [https://sourceforge.net/p/tcl/mailman/message/36046091/]
      
    5. foundin initialized to:
      45c4e5f731439886aa1770443dfcb9b810780e06a5c9ddd6a6ea6e49b5b8aa35
      
    6. is_private initialized to: "0"
    7. login: "andy"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "662c23482b0bf6a505f39e48fb7ad43af8dee4d3"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "andy"
    14. subsystem initialized to: "47. Bytecode Compiler"
    15. title initialized to: " string-29.6 fails due to interp alias"
    16. type initialized to: "Bug"
  2. Ticket change [82536d0766] (rid 156706) by dgp on 2017-09-21 13:36:50:

    1. icomment:
      
      The purpose of tests string-29.5 through string-29.15
      is to test internal details of TclStringCatObjv() over
      many cases of input conditions, what Tcl_ObjType's they
      have and whether they have a string rep.
      
      string-29.6 in particular wants the second argument to
      come in without a string rep.  As originally implemented
      it did that.
      
      The revisions to drive things with an alias has upset
      that design.  The second argument now comes in with a
      string rep already generated, so the test no longer
      tests what it intends to test, and fails.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [813d933e20] (rid 156707) by dgp on 2017-09-21 13:54:04:

    1. login: "dgp"
    2. mimetype: "text/plain"
  4. Ticket change [5e42f7e2d3] (rid 156710) by dgp on 2017-09-21 14:35:43:

    1. icomment:
      
      The purpose is to test TclStringCatObjv and [string cat]
      is just a mechanism to get there.
      
      The direct eval path via StringCatCmd() is very simple and
      lets us pass through directly the arguments carefully
      constructed to cover the cases.
      
      The path through bytecode is much messier with several layers
      of optimization and literal management.  I honestly do not
      understand why some of the tests have been passing.  I
      cannot devote the time now to digging out all the detail.
      
      The simple fix, or workaround if you insist, is to run 
      only those tests that match the intent.  I've committed
      that change to the amg-string-insert branch.
      
    2. login: "dgp"
    3. mimetype: "text/plain"