Overview
| Artifact ID: | ef0bd4da1e578b9ef2e7a6e182bedebd62e534eae8b7da27a17d2d645dedec07 |
|---|---|
| Ticket: | 7de2d722bd599da5db26b42ed8addb16a66c832c
cmdAH-25.2 (Tcl_FileObjCmd: owned) fails on Windows |
| User & Date: | fvogel on 2019-09-12 16:16:40 |
Changes
- icomment:
On the Win10 PC where cmdAH-25.3.1 is failing, the owner of <code>C:\Windows</code> is 'TrustedInstaller'. That's not me. What is weird is that running <code>file owned $env(windir)</code> directly in tclsh returns the 0 expected by the test. So the test must be testing the owner of <code>$env(windir)</code> but this variable does not, at the time the test is executed, contain <code>C:\Windows</code>. Adding a puts inside the test indeed reveals that <code>$env(windir)</code> actually is <code>E:\tcltk-fossil\tcl\win\..\win</code>, i.e. the 'win' subdirectory of the tcl repository. On the Vista PC on which cmdAH-25.3.1 is passing, the owner of <code>C:\Windows</code> also is 'TrustedInstaller', which is not me. The puts in cmdAH-25.3.1 reveals that again <code>$env(windir)</code> is not <code>C:\Windows</code> but the 'win' subdirectory of the tcl repository. So on this Vista PC the test passes by pure accident. Conclusion: cmdAH-25.3.1 is not testing the owner of <code>C:\Windows</code> as was probably the original intent. It seems that something sets <code>$env(windir)</code> so that it rather contains the 'win' subdirectory of the tcl repository, and the test passes or fails depending on which user runs the tests. I think the original intent in cmdAH-25.3.1 rather was to test something like <code>file owned $env(SystemRoot)</code>, don't you think so?
- login: "fvogel"
- mimetype: "text/x-fossil-wiki"