Overview
| Artifact ID: | 80ec6f9ad79dc1dd1ed567fd79cd30f0400ecafde7b2568dd72d4eb4cb9e1854 |
|---|---|
| Ticket: | 7de2d722bd599da5db26b42ed8addb16a66c832c
cmdAH-25.2 (Tcl_FileObjCmd: owned) fails on Windows |
| User & Date: | sebres on 2019-09-09 08:13:48 |
Changes
- icomment:
<i>> I would haved expected that 'file owned' returned true for files I had just created myself</i> Nope, it is related to NTFS default security for drive (since Vista/Win7 it is owned by default owner after creation, also note that creator owner should have permission to take ownership, as well as the policies for that). Anyway many tests would only work properly if you start tcl-test from %TEMP% folder.<br/> In automake (mingw) build I extended tcltest target with helpers doing that, here is for example auto-generated <code>tcltest.cmd</code>: <pre style="padding-left:10pt"> @echo off set BDP=%~dp0 set OWD=%CD% cd /d %TEMP% rem "%BDP%\tclsh86.exe" "%BDP%/../../tests/all.tcl" %TESTFLAGS% -load "package ifneeded Tcltest 8.6.9 [list load [file normalize tcltest86.dll] Tcltest]; package ifneeded dde 1.4.1 [list load [file normalize tcldde14.dll] dde]; package ifneeded registry 1.3.3 [list load [file normalize tclreg13.dll] registry]" %* "%BDP%\tcltest.exe" ""%BDP%/../../tests/all.tcl" %TESTFLAGS% -load "package ifneeded dde 1.4.1 [list load [file normalize tcldde14.dll] dde]; package ifneeded registry 1.3.3 [list load [file normalize tclreg13.dll] registry]" %* cd /d %OWD% </pre> Can you test your build using this method?<br/> Then we could create such helpers and test from it also in VS-build. I have also fixed several tests (or provided few additional constraint) on github to satisfy travis, have still to rebase that all to fossil from github. For 8.5 - https://github.com/sebres/tcl/compare/core-8-5-branch...test/travis-8-5-branch <br/> For 8.6 - https://github.com/sebres/tcl/compare/core-8-6-branch...tests/sebres-travis-windows-debug
- login: "sebres"
- mimetype: "text/x-fossil-wiki"