Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-12-13
15:24 • Closed ticket [e587ab26e5]: TIP 670 test suite errors plus 7 other changes artifact: d92779fc32 user: jan.nijtmans
2023-11-15
14:57 • Ticket [e587ab26e5]: 3 changes artifact: f05b00e4ae user: dgp
14:47 • Ticket [e587ab26e5]: 4 changes artifact: cae17e3e45 user: dgp
14:47 • New ticket [e587ab26e5]. artifact: 43367e2e71 user: dgp

TIP 670 test suite errors

Closed / Fixede587ab26e56c0a284d27ccc26e0f8d14eefdd970Created 3 years agoUpdated 3 years ago
Descriptionplain2023-11-15 14:47:06
Maybe the new files in the script library are not getting brought
into the zipfs archive??



ioCmd.test


==== iocmd.readFile-1.1 readFile procedure: syntax FAILED
==== Contents of test case:

    readFile

---- Result was:
invalid command name "readFile"
---- Result should have been (exact matching):
wrong # args: should be "readFile filename ?mode?"
==== iocmd.readFile-1.1 FAILED



==== iocmd.readFile-1.2 readFile procedure: syntax FAILED
==== Contents of test case:

    readFile a b c

---- Result was:
invalid command name "readFile"
---- Result should have been (exact matching):
wrong # args: should be "readFile filename ?mode?"
==== iocmd.readFile-1.2 FAILED



==== iocmd.readFile-1.3 readFile procedure: syntax FAILED
==== Contents of test case:

    readFile gorp gorp2

---- Result was:
invalid command name "readFile"
---- Result should have been (exact matching):
bad mode "gorp2": must be binary or text
==== iocmd.readFile-1.3 FAILED



==== iocmd.readFile-2.1 readFile procedure: behaviour FAILED
==== Contents of test case:

    readFile $f

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: invalid command name "readFile"
    while executing
"readFile $f"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $script"
---- errorCode: TCL LOOKUP COMMAND readFile
==== iocmd.readFile-2.1 FAILED



==== iocmd.readFile-2.2 readFile procedure: behaviour FAILED
==== Contents of test case:

    readFile $f text

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: invalid command name "readFile"
    while executing
"readFile $f text"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $script"
---- errorCode: TCL LOOKUP COMMAND readFile
==== iocmd.readFile-2.2 FAILED



==== iocmd.readFile-2.3 readFile procedure: behaviour FAILED
==== Contents of test case:

    list [binary scan [readFile $f binary] c* x] $x

---- Test setup failed:
couldn't open "/local/tmp/dgp/fossil/tcl8.7/unix": is a directory
---- errorInfo(setup): couldn't open "/local/tmp/dgp/fossil/tcl8.7/unix": is a directory
    while executing
"open $fullName w"
    (procedure "makeFile" line 13)
    invoked from within
"makeFile readFile23.bin """
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $setup"
---- errorCode(setup): POSIX EISDIR {is a directory}
==== iocmd.readFile-2.3 FAILED

Test file error: couldn't open "/local/tmp/dgp/fossil/tcl8.7/unix": is a directory
    while executing
"open $fullName w"
    (procedure "makeFile" line 13)
    invoked from within
"makeFile readFile24.txt """
    invoked from within
"set f [makeFile readFile24.txt ""]"
    (file "/local/tmp/dgp/fossil/tcl8.7/tests/ioCmd.test" line 3972)
dgp Ticket [e587ab26e5]: 4 changes [History diff]2023-11-15 14:47:25
dgpplain2023-11-15 14:57:18
When I disable the use of a zipfs archive, the test failures shift to this:


==== iocmd.readFile-2.1 readFile procedure: behaviour FAILED
==== Contents of test case:

    readFile $f

---- Result was:
readFile21.txt\x0A
---- Result should have been (exact matching):
File\x0AContents\x0A
==== iocmd.readFile-2.1 FAILED



==== iocmd.readFile-2.2 readFile procedure: behaviour FAILED
==== Contents of test case:

    readFile $f text

---- Result was:
readFile22.txt\x0A
---- Result should have been (exact matching):
File\x0AContents\x0A
==== iocmd.readFile-2.2 FAILED



==== iocmd.readFile-2.3 readFile procedure: behaviour FAILED
==== Contents of test case:

    list [binary scan [readFile $f binary] c* x] $x

---- Test setup failed:
couldn't open "/local/tmp/dgp/fossil/tcl8.7/unix": is a directory
---- errorInfo(setup): couldn't open "/local/tmp/dgp/fossil/tcl8.7/unix": is a directory
    while executing
"open $fullName w"
    (procedure "makeFile" line 13)
    invoked from within
"makeFile readFile23.bin """
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $setup"
---- errorCode(setup): POSIX EISDIR {is a directory}
==== iocmd.readFile-2.3 FAILED

Test file error: couldn't open "/local/tmp/dgp/fossil/tcl8.7/unix": is a directory
    while executing
"open $fullName w"
    (procedure "makeFile" line 13)
    invoked from within
"makeFile readFile24.txt """
    invoked from within
"set f [makeFile readFile24.txt ""]"
    (file "/local/tmp/dgp/fossil/tcl8.7/tests/ioCmd.test" line 3972)
jan.nijtmanswiki2023-12-13 15:24:46

Fixed [here]

Log in (anonymous is fine) to add a comment.