Tcl Source Code

View Ticket
Login
Ticket UUID: 0e15cc8367c51ab90f433109313f32b8dbfdb90c
Title: unixFCmd-20.1 and unixInit-3.1 fail in Tcl8.6.7 / FreeBSD 11.1 + gcc5
Type: Bug Created on: 2017-08-17 18:45:14
Submitter: anonymous Assigned to: nobody
Subsystem: 34. tcltest Package Severity: Minor
Priority: 5 Medium Last modified: 2026-10-28 11:27:36
Status: Closed Closed by: serhiy.storchaka
Resolution: Fixed Closed on:
Version: Tcl 8.6.7
Description:
# make test TESTFLAGS="-file unixFCmd.test -verbose bepst"

LD_LIBRARY_PATH=`pwd`:  TCLLIBPATH="/usr/opt/tcl86/src/tcl/unix/pkgs"  TCL_LIBRARY="/usr/opt/tcl86/src/tcl/library" ./tcltest /usr/opt/tcl86/src/tcl/tests/all.tcl -file unixFCmd.test -verbose bepst
Tests running in interp:  /usr/opt/tcl86/src/tcl/unix/tcltest
Tests located in:  /usr/opt/tcl86/src/tcl/tests
Tests running in:  /usr/opt/tcl86/src/tcl/unix
Temporary files stored in /usr/opt/tcl86/src/tcl/unix
Test files run in separate interpreters
Running tests that match:  *
Skipping test files that match:  l.*.test
Only running test files that match:  unixFCmd.test
Tests began at Thu Aug 17 17:45:07 UTC 2017
unixFCmd.test
---- unixFCmd-1.1 start
++++ unixFCmd-1.1 PASSED
---- unixFCmd-1.2 start
++++ unixFCmd-1.2 PASSED
---- unixFCmd-1.3 start
++++ unixFCmd-1.3 PASSED
++++ unixFCmd-1.4 SKIPPED: emptyTest
---- unixFCmd-1.5 start
++++ unixFCmd-1.5 PASSED
++++ unixFCmd-1.6 SKIPPED: emptyTest
---- unixFCmd-1.7 start
++++ unixFCmd-1.7 PASSED
++++ unixFCmd-1.8 SKIPPED: nonPortable
++++ unixFCmd-1.9 SKIPPED: nonPortable
---- unixFCmd-2.1 start
++++ unixFCmd-2.1 PASSED
++++ unixFCmd-2.2.1 SKIPPED: dontCopyLinks
---- unixFCmd-2.2.2 start
++++ unixFCmd-2.2.2 PASSED
---- unixFCmd-2.3 start
++++ unixFCmd-2.3 PASSED
++++ unixFCmd-2.4 SKIPPED: execMknod
---- unixFCmd-2.5 start
++++ unixFCmd-2.5 PASSED
++++ unixFCmd-3.1 SKIPPED: emptyTest
++++ unixFCmd-4.1 SKIPPED: emptyTest
++++ unixFCmd-5.1 SKIPPED: emptyTest
++++ unixFCmd-6.1 SKIPPED: emptyTest
++++ unixFCmd-7.1 SKIPPED: emptyTest
++++ unixFCmd-8.1 SKIPPED: emptyTest
++++ unixFCmd-9.1 SKIPPED: emptyTest
++++ unixFCmd-10.1 SKIPPED: emptyTest
++++ unixFCmd-11.1 SKIPPED: emptyTest
---- unixFCmd-12.1 start
++++ unixFCmd-12.1 PASSED
---- unixFCmd-12.2 start
++++ unixFCmd-12.2 PASSED
---- unixFCmd-13.1 start
++++ unixFCmd-13.1 PASSED
---- unixFCmd-13.2 start
++++ unixFCmd-13.2 PASSED
---- unixFCmd-14.1 start
++++ unixFCmd-14.1 PASSED
---- unixFCmd-14.2 start
++++ unixFCmd-14.2 PASSED
---- unixFCmd-15.1 start
++++ unixFCmd-15.1 PASSED
---- unixFCmd-15.2 start
++++ unixFCmd-15.2 PASSED
---- unixFCmd-16.1 start
++++ unixFCmd-16.1 PASSED
---- unixFCmd-16.2 start
++++ unixFCmd-16.2 PASSED
---- unixFCmd-16.3 start
++++ unixFCmd-16.3 PASSED
---- unixFCmd-17.1 start
++++ unixFCmd-17.1 PASSED
---- unixFCmd-17.2 start
++++ unixFCmd-17.2 PASSED
---- unixFCmd-17.3 start
++++ unixFCmd-17.3 PASSED
---- unixFCmd-17.4 start
++++ unixFCmd-17.4 PASSED
---- unixFCmd-17.5 start
++++ unixFCmd-17.5 PASSED
---- unixFCmd-17.6 start
++++ unixFCmd-17.6 PASSED
---- unixFCmd-17.7 start
++++ unixFCmd-17.7 PASSED
---- unixFCmd-17.11 start
++++ unixFCmd-17.11 PASSED
---- unixFCmd-17.12 start
++++ unixFCmd-17.12 PASSED
++++ unixFCmd-18.1 SKIPPED: nonPortable
---- unixFCmd-19.1 start
++++ unixFCmd-19.1 PASSED
---- unixFCmd-19.2 start
++++ unixFCmd-19.2 PASSED
---- unixFCmd-20.1 start


==== unixFCmd-20.1 SetReadOnlyAttribute FAILED
==== Contents of test case:

    close [open foo.test w]
    list [catch {file attributes foo.test -readonly 1} msg] $msg  [catch {file attribute foo.test -readonly} msg] $msg  [catch {file delete -force -- foo.test}]  [catch {file attributes foo.test -readonly 0} msg] $msg  [catch {file attribute foo.test -readonly} msg] $msg

---- Result was:
1 {could not set flags for file "foo.test": operation not supported} 0 0 0 1 {could not read "foo.test": no such file or directory} 1 {could not read "foo.test": no such file or directory}
---- Result should have been (exact matching):
0 {} 0 1 1 0 {} 0 0
==== unixFCmd-20.1 FAILED

---- unixFCmd-20.2 start
++++ unixFCmd-20.2 PASSED

Tests ended at Thu Aug 17 17:45:07 UTC 2017
all.tcl:	Total	49	Passed	32	Skipped	16	Failed	1
Sourced 1 Test Files.
Files with failing tests: unixFCmd.test
Number of tests skipped for each constraint:
	1	dontCopyLinks
	11	emptyTest
	1	execMknod
	3	nonPortable

--------------------

# make test TESTFLAGS="-file unixInit.test -verbose bepst" 

LD_LIBRARY_PATH=`pwd`:  TCLLIBPATH="/usr/opt/tcl86/src/tcl/unix/pkgs"  TCL_LIBRARY="/usr/opt/tcl86/src/tcl/library" ./tcltest /usr/opt/tcl86/src/tcl/tests/all.tcl -file unixInit.test -verbose bepst
Tests running in interp:  /usr/opt/tcl86/src/tcl/unix/tcltest
Tests located in:  /usr/opt/tcl86/src/tcl/tests
Tests running in:  /usr/opt/tcl86/src/tcl/unix
Temporary files stored in /usr/opt/tcl86/src/tcl/unix
Test files run in separate interpreters
Running tests that match:  *
Skipping test files that match:  l.*.test
Only running test files that match:  unixInit.test
Tests began at Thu Aug 17 17:45:50 UTC 2017
unixInit.test
---- unixInit-1.1 start
++++ unixInit-1.1 PASSED
---- unixInit-1.2 start
++++ unixInit-1.2 PASSED
---- unixInit-3.1 start


==== unixInit-3.1 TclpSetInitialEncodings FAILED
==== Contents of test case:

    set env(LANG) C
    set f [open "|[list [interpreter]]" w+]
    chan configure $f -buffering none
    puts $f {puts [encoding system]; exit}
    set enc [gets $f]
    close $f
    return $enc

---- Result was:
utf-8
---- Result should have been (regexp matching):
^iso8859-15?$
==== unixInit-3.1 FAILED

---- unixInit-3.2 start
++++ unixInit-3.2 PASSED
---- unixInit-4.1 start
++++ unixInit-4.1 PASSED
++++ unixInit-5.1 SKIPPED: emptyTest
++++ unixInit-6.1 SKIPPED: emptyTest
---- unixInit-7.1 start
++++ unixInit-7.1 PASSED

Tests ended at Thu Aug 17 17:45:50 UTC 2017
all.tcl:	Total	19	Passed	5	Skipped	13	Failed	1
Sourced 1 Test Files.
Files with failing tests: unixInit.test
Number of tests skipped for each constraint:
	2	emptyTest
User Comments:
serhiy.storchaka added on 2026-10-28 11:27:36:

unixFCmd-20.1: fixed in [14e87701df] (main), [d2cd52233d] (9.0), [3db7fb0a6d] (8.6). unixInit-3.1 passes on FreeBSD 15.1.