| Ticket UUID: | 2891026 | ||
| Title: | fCmd test failures on Windows7 | ||
| Type: | Bug | Created on: | 2009-11-03 01:02:14 |
| Submitter: | patthoyts | Assigned to: | aku |
| Subsystem: | 37. File System | Severity: | Minor |
| Priority: | 9 Immediate | Last modified: | 2016-07-26 12:04:32 |
| Status: | Closed | Closed by: | oehhar |
| Resolution: | Fixed | Closed on: | 2016-07-26 12:04:32 |
| Version: | obsolete: 8.6b1.1 | ||
| Description: | ||||
We are getting test failures for fCmd 9.4, 9.6, 9.9 and 9.11 on Windows 7 for both HEAD and 8.5-branch. Each of these uses the testchmod command to set the directory to 555 which seems to equate to 'attrib +r dir & cacls dir /e /d Everyone' ie: set the directory readonly and deny write access. Presumably on Unix a 555 directory can be renamed or otherwise modified by not on Win7. The actual error is a permission denied when trying to rename the directory. So I think this test is wrong here. I believe the ACL being set is probably overly restrictive if we are trying to emulate posix semantics for directory access with this. But I'm not certain of the intention of the tests in this regard for Windows. Note: these tests pass on Windows XP. I think they fail on Vista but I have not recently re-checked. | ||||
| User Comments: | ||||
dkf added on 2009-11-03 16:17:43:
It seems to vary. With HFS+ on OSX, I can't rename or delete a dir set to 555, or make, delete or rename files in it. (I can modify existing files though.) With NFS on Solaris, I can rename the dir (!) but otherwise the same. Maybe just mark the tests as nonPortable... dgp added on 2009-11-05 00:50:20:
this is fixed now? patthoyts added on 2009-11-07 16:25:03:
Given the low portability of this test I've added contstraints to exclude those that use 555 directories on Windows Vista and above. That leaves them running on XP. patthoyts added on 2009-11-07 16:25:04:
allow_comments - 1 oehhar added on 2016-07-26 12:04:32:
Test fCmd-9.11 failed on tcl8.6.6rc1 with the following log:
==== cmdAH-25.3.1 Tcl_FileObjCmd: owned FAILED
==== Contents of test case:
file owned $env(windir)
---- Result was:
1
---- Result should have been (exact matching):
0
==== cmdAH-25.3.1 FAILED
Apparently, this test was reenabled and is still failing. Environment:
| ||||
