diff options
author | ashok <ashok> | 2016-07-07 06:30:58 (GMT) |
---|---|---|
committer | ashok <ashok> | 2016-07-07 06:30:58 (GMT) |
commit | 85d1666247031e3e951f4817797a6c3d205ed388 (patch) | |
tree | 6c02f8a6a858f357847f980c4f81293d9de187fb /tests/fileName.test | |
parent | bf0a1dc6c572e9b49cf0c55903f32caa66b00772 (diff) | |
download | tcl-85d1666247031e3e951f4817797a6c3d205ed388.zip tcl-85d1666247031e3e951f4817797a6c3d205ed388.tar.gz tcl-85d1666247031e3e951f4817797a6c3d205ed388.tar.bz2 |
Bugfix [5d7ea04580]. Treat .cmd and .ps1 files are executable on Windows.
Diffstat (limited to 'tests/fileName.test')
-rw-r--r-- | tests/fileName.test | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/fileName.test b/tests/fileName.test index 51f00d1..a19bd1e 100644 --- a/tests/fileName.test +++ b/tests/fileName.test @@ -1468,14 +1468,16 @@ if {[testConstraint testsetplatform]} { } test filename-17.2 {windows specific glob with executable} -body { makeDirectory execglob - makeFile contents execglob/abc.exe - makeFile contents execglob/abc.notexecutable - glob -nocomplain -dir [temporaryDirectory]/execglob -tails -types x * + foreach ext {exe com cmd bat ps1 notexecutable} { + makeFile contents execglob/abc.$ext + } + lsort [glob -nocomplain -dir [temporaryDirectory]/execglob -tails -types x *] } -constraints {win} -cleanup { - removeFile execglob/abc.exe - removeFile execglob/abc.notexecutable + foreach ext {exe com cmd bat ps1 notexecutable} { + removeFile execglob/abc.$ext + } removeDirectory execglob -} -result {abc.exe} +} -result {abc.bat abc.cmd abc.com abc.exe abc.ps1} test filename-17.3 {Bug 2571597} win { set p /a file pathtype $p |