Overview
| Artifact ID: | f1d3966f1fd1821ca2a17783091b3fd0407b516b |
|---|---|
| Ticket: | 3549770fffffffffffffffffffffffffffffffff
Multiple test failures running tcltest outside build tree |
| User & Date: | twylite on 2012-07-30 19:17:44 |
Changes
- icomment:
> So, what's wrong with the following reasoning. It works, but it's brittle. There are now 4+ places that the reg/dde version numbers must be kept in sync. Tcl builds with newer versions of reg/dde will necessarily fail against older versions of the test suite (which generally shouldn't happen in regression testing). Still, it works, and it's your call on what fix gets accepted. > Yes that's the way to assure the right version is loaded. The test should not care that the 'right version' is loaded. The test should care only that a version with the minimum required compatibility is loaded. Using -exact makes the test unnecessarily specific and incurs additional work for future maintainers. In short, it's brittle. The test execution environment should ensure that the DLL intended for testing is the one actually loaded; in the build environment this requires some additional logic to communicate the DLL location to the .test file. > I now added an additional test-case winDde-1.0 and registry-1.0, which check whether the right dll is tested. If not, this test will fail but all others will run normally. These tests are redundant - if the [package require -exact] fails then the reg/dde constraint will be 0 and these tests will never execute. Conversely if the [package require -exact] passes then the dde/reg constrained tests will execute but we're already guaranteed of the correct DLL version. > filesystem-7.1.[12] should pass now from outside the build environment. Thanks, will test shortly.
- login: "twylite"
- mimetype: "text/plain"
- username: "twylite"