diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-03-02 07:32:04 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-03-02 07:32:04 (GMT) |
commit | b46470349376884c03bd82555fbb06be255ad75c (patch) | |
tree | 0058a2b1326f68432bcc0bbc45e9ada6a7b7ea09 /tests/tcltest.test | |
parent | 1d9ebbc7400a6c6308b0d446e06bfae0427af989 (diff) | |
parent | 4d674569535d565275d4a4d4a16a8c63ed7c41f9 (diff) | |
download | tcl-b46470349376884c03bd82555fbb06be255ad75c.zip tcl-b46470349376884c03bd82555fbb06be255ad75c.tar.gz tcl-b46470349376884c03bd82555fbb06be255ad75c.tar.bz2 |
Merge 8.7: Disable more file permissions tests for WSL (not supported in WSL/NTFS)
Diffstat (limited to 'tests/tcltest.test')
-rw-r--r-- | tests/tcltest.test | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/tcltest.test b/tests/tcltest.test index 6bc5ad1..48a3c17 100644 --- a/tests/tcltest.test +++ b/tests/tcltest.test @@ -22,6 +22,9 @@ if {"::tcltest" ni [namespace children]} { namespace import -force ::tcltest::* } +# File permissions broken on wsl without some "exotic" wsl configuration +testConstraint notWsl [expr {[llength [array names ::env *WSL*]] == 0}] + namespace eval ::tcltest::test { namespace import ::tcltest::* @@ -306,7 +309,7 @@ test tcltest-5.3 {testConstraint - constraint empty (tcltest::safeFetch)} { #} test tcltest-5.5 {InitConstraints: list of built-in constraints} \ - -constraints {!singleTestInterp} \ + -constraints {!singleTestInterp notWsl} \ -setup {tcltest::InitConstraints} \ -body { lsort [array names ::tcltest::testConstraints] } \ -result [lsort { @@ -557,7 +560,7 @@ switch -- $::tcl_platform(platform) { } } test tcltest-8.3 {tcltest a.tcl -tmpdir notReadableDir} { - -constraints {unix notRoot} + -constraints {unix notRoot notWsl} -body { child msg $a -tmpdir $notReadableDir return $msg @@ -573,7 +576,7 @@ testConstraint notFAT [expr { }] # FAT/NTFS permissions are fairly hopeless; ignore this test if that FS is used test tcltest-8.4 {tcltest a.tcl -tmpdir notWriteableDir} { - -constraints {unixOrWin notRoot notFAT} + -constraints {unixOrWin notRoot notFAT notWsl} -body { child msg $a -tmpdir $notWriteableDir return $msg @@ -646,7 +649,7 @@ test tcltest-8.11 {tcltest a.tcl -testdir thisdirectoryisafile} { -result {*not a directory*} } test tcltest-8.12 {tcltest a.tcl -testdir notReadableDir} { - -constraints {unix notRoot} + -constraints {unix notRoot notWsl} -body { child msg $a -testdir $notReadableDir return $msg |