Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Testsuite errors

Closed / Fixed218640ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:34
OriginalBugID: 1570 Bug
Version: 8.1b2
SubmitDate: '1999-03-22'
LastModified: '1999-03-24'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: admin
RelatedBugIDs: 1521  1578  1580   1608
OS: Linux
OSVersion: 2.0.29
Machine: Other
FixedDate: '1999-03-24'
FixedInVersion: 8.1b2
ClosedDate: '2000-10-25'


Name:

Andreas Kupries


Extensions:

Base tcl 8.1b2 source distribution


CustomShell:

None.


ReproducibleScript:

    configure --enable-shared

    make ; make tcltest ; make test


ObservedBehavior:

    4 failed tests, 2 not relevant, linux just produced a different message

    than expected. 2 failures caused by errors in the testsuite itself.

    ~~~~~~~~~~~~~~~~~~~~~~~


    Tcl 8.1 tests running in interp:

    /home/aku/work/tcl/c/distrib/tcl8.1b2/unix/tcltest

    Tests running in working dir:

    /home/aku/work/tcl/c/distrib/tcl8.1b2/unix


    Tests began at Fri Mar 19 14:29:02 MET 1999

    Tests ended at Fri Mar 19 14:31:14 MET 1999


    all.tcl:Total7867Passed7639Skipped224Failed4

    Sourced 104 Test Files.


    Files with failing tests: fCmd.test io.test unixFCmd.test unixInit.test


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    ~~


    ==== fCmd-6.30 CopyRenameOneFile: TclpRemoveDirectory failed FAILED

    ==== unixFCmd-1.7 TclpRenameFile: EXDEV FAILED


    Irrelevant, difference in expected message and message

    generated by Linux.


    ==== unixInit-2.6 TclpInitLibraryPath: executable relative FAILED


    Error in test itself.


    Replace[lrange ... 0 2]

    with[lrange ... 0 1]


    ==== io-52.8 TclCopyChannel FAILED


    Error in test itself, {} prevented substitution of '$thisScript'

    in script for subordinate shell.


DesiredBehavior:

    No failures of the testsuite.


Patch:

*** tests/io.test.origSat Mar 20 17:33:01 1999

--- tests/io.testSat Mar 20 17:34:24 1999

***************

*** 6405,6418 ****

      removeFile pipe

      set f1 [open pipe w]

      fconfigure $f1 -translation lf

!     puts $f1 {

  puts ready

  gets stdin

! set f1 [open $thisScript r]

! fconfigure $f1 -translation lf

! puts [read $f1 100]

! close $f1

!     }

      close $f1

      set f1 [open "|[list $tcltest pipe]" r+]

      fconfigure $f1 -translation lf

--- 6405,6418 ----

      removeFile pipe

      set f1 [open pipe w]

      fconfigure $f1 -translation lf

!     puts $f1 "

  puts ready

  gets stdin

! set f1 \[open $thisScript r]

! fconfigure \$f1 -translation lf

! puts \[read \$f1 100]

! close \$f1

!     "

      close $f1

      set f1 [open "|[list $tcltest pipe]" r+]

      fconfigure $f1 -translation lf

*** tests/unixInit.test.origSat Mar 20 17:33:37 1999

--- tests/unixInit.testSat Mar 20 17:33:50 1999

***************

*** 114,120 ****

      file mkdir /tmp/sparkly/lib/tcl[info tclversion]

      close [open /tmp/sparkly/lib/tcl[info tclversion]/init.tcl w]


!     set x [lrange [getlibpath /tmp/sparkly/bin/tcltest] 0 2]

      file delete -force /tmp/sparkly

      set x

  } [list /tmp/sparkly/lib/tcl[info tclversion] /tmp/tcl[info patchlevel]/library]

--- 114,120 ----

      file mkdir /tmp/sparkly/lib/tcl[info tclversion]

      close [open /tmp/sparkly/lib/tcl[info tclversion]/init.tcl w]


!     set x [lrange [getlibpath /tmp/sparkly/bin/tcltest] 0 1]

      file delete -force /tmp/sparkly

      set x

  } [list /tmp/sparkly/lib/tcl[info tclversion] /tmp/tcl[info patchlevel]/library]


PatchFiles:

    tests/io.test

    tests/unixInit.test



Related bug IDs 1521, 1578, 1580 & 1608

Applied this patch!  03/24/1999 19:57 - admin -
welch Closed ticket [218640ffff]. [History diff]2000-10-26 08:26:09
dgp Ticket [218640ffff]: 3 changes [History diff]2001-04-05 08:22:16
Log in (anonymous is fine) to add a comment.