diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-19 09:39:20 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-11-19 09:39:20 (GMT) |
commit | d1dfef4884d442f7c3a8a0f5e6a5b0e1aed2a19d (patch) | |
tree | 4d5bed19b1ec15769cb8521be154fe4c10fb7d7d /tests/fCmd.test | |
parent | f7b532246a185fd8f314fdf9969a4a58533f90bc (diff) | |
download | tcl-d1dfef4884d442f7c3a8a0f5e6a5b0e1aed2a19d.zip tcl-d1dfef4884d442f7c3a8a0f5e6a5b0e1aed2a19d.tar.gz tcl-d1dfef4884d442f7c3a8a0f5e6a5b0e1aed2a19d.tar.bz2 |
Handle github actions test failures. Backported from 8.6
Diffstat (limited to 'tests/fCmd.test')
-rw-r--r-- | tests/fCmd.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test index 9b6c21e..0fabc90 100644 --- a/tests/fCmd.test +++ b/tests/fCmd.test @@ -76,6 +76,7 @@ testConstraint darwin9 [expr { && [package vsatisfies 1.$::tcl_platform(osVersion) 1.9] }] testConstraint notDarwin9 [expr {![testConstraint darwin9]}] +testConstraint notContinuousIntegration [expr {![info exists ::env(CI)]}] testConstraint fileSharing 0 testConstraint notFileSharing 1 @@ -2578,7 +2579,11 @@ test fCmd-30.2 {file readable on 'NTUSER.DAT'} -constraints {win} -body { && [file exists $env(USERPROFILE)/NTUSER.DAT] && [file readable $env(USERPROFILE)/NTUSER.DAT]} } -result {1} -test fCmd-30.3 {file readable on 'pagefile.sys'} -constraints {win} -body { +# At least one CI environment (GitHub Actions) is set up with the page file in +# an unusual location; skip the test if that is so. +test fCmd-30.3 {file readable on 'pagefile.sys'} -constraints { + win notContinuousIntegration +} -body { set r {} if {[info exists env(SystemDrive)]} { set path $env(SystemDrive)/pagefile.sys |