summaryrefslogtreecommitdiffstats
path: root/tests/fCmd.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-19 08:57:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-19 08:57:49 (GMT)
commit14ec7c1d858d00e7c69c80c28cf599095dd3feaf (patch)
treec1bbe67b99dbfd4a521682975956b358f53f7bb2 /tests/fCmd.test
parent72c49f69099c98bd55334dbad3d68645c72bc707 (diff)
parent8e1f957a669b2f4b84dca7e8a27f2985c0625172 (diff)
downloadtcl-14ec7c1d858d00e7c69c80c28cf599095dd3feaf.zip
tcl-14ec7c1d858d00e7c69c80c28cf599095dd3feaf.tar.gz
tcl-14ec7c1d858d00e7c69c80c28cf599095dd3feaf.tar.bz2
Merge 8.7
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 986e2f4..ac8cfb5 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