summaryrefslogtreecommitdiffstats
path: root/tests/fCmd.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2020-11-16 10:06:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2020-11-16 10:06:20 (GMT)
commitdac1c2f4f24933af8d0514068a93e9808f74f886 (patch)
treea991af2d863a607119d5fe69403d203ff72d9513 /tests/fCmd.test
parentd8f5e027e28a3314d9bfbcb056cbe06cf4fe489d (diff)
parent106838de02ee97e81b6a945add9138eacbe2c7ba (diff)
downloadtcl-dac1c2f4f24933af8d0514068a93e9808f74f886.zip
tcl-dac1c2f4f24933af8d0514068a93e9808f74f886.tar.gz
tcl-dac1c2f4f24933af8d0514068a93e9808f74f886.tar.bz2
Merge 8.6
Diffstat (limited to 'tests/fCmd.test')
-rw-r--r--tests/fCmd.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test
index a1e0a6e..b4383db 100644
--- a/tests/fCmd.test
+++ b/tests/fCmd.test
@@ -41,7 +41,7 @@ if {[testConstraint win]} {
testConstraint reg 1
}
}
-testConstraint notWine [expr {$::tcl_platform(platform) ne "windows" || ![info exists ::env(TRAVIS_OS_NAME)] || ![string match linux $::env(TRAVIS_OS_NAME)]}]
+testConstraint notCI [expr {![info exists ::env(CI)] || !$::env(CI)}]
set tmpspace /tmp;# default value
# Find a group that exists on this Unix system, or else skip tests that
@@ -79,6 +79,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
@@ -2581,7 +2582,9 @@ test fCmd-30.2 {file readable on 'NTUSER.DAT'} -constraints {win notWine} -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 notWine} -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 notCI} -body {
set r {}
if {[info exists env(SystemDrive)]} {
set path $env(SystemDrive)/pagefile.sys