Overview
| Artifact ID: | 542ee99a12e50445671bdeb46c1fa2ce27000d4b |
|---|---|
| Ticket: | 3549770fffffffffffffffffffffffffffffffff
Multiple test failures running tcltest outside build tree |
| User & Date: | twylite on 2012-07-30 16:32:13 |
Changes
- icomment:
No, this does not solve everything. - Checkin [9792ff8b65] breaks 86 tests in info.test. - Checkin [334aea1d5d] will break windde.test the moment the version of the DDE package changes. - fCmd.test was missed in [334aea1d5d], so a test in fCmd gets skipped in the install environment. - winDde-7.5 now fails in the install environment; I haven't investigated further, since in my opinion this is a bug introduced by an incorrect fix. - The filesystem, msgcat and safe issues are still unresolved. - Checkin [9792ff8b65] makes makefile.in and makefile.vc behave differently w.r.t. testing. Please explain. You _cannot_ figure out ::ddelib in windde.test after a 'package require'. The logic requires intimate knowledge of the package version and the exact syntax of the 'ifneeded' script. Code locality demands that setting ::ddelib goes into pkgIndex.tcl. The change to rely on 'package require' is also fragile. If specified with the exact version then multiple test files _must_ change every time the versions of dde or registry are updated. If specified without the exact version then the wrong DLL could be tested if there is for some reason a newer version provided via the pkgIndex in TCL_LIBRARY. The _right_ way to do this is not to muck with the logic for the build environment, which has been working fine the whole time, and ensures that the built DLL is the one that gets tested. The logic that works is to try the static extension first, then try to load from a file explicitly indicated by the build system. What is missing is a fallback case for the install environment: if the former two fail, then try a package require and have it communicate to the test the location of the library actually loaded. I am attaching td-3549770-3.patch that fixes these problems (except filesystem, msgcat, safe). Please don't make me fix them a forth time.
- login: "twylite"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "twylite"