Tcl Source Code

View Ticket
Login
Ticket UUID: 852a17eeb9cba41f8a85a3a81839183e09f1f9db
Title: Build test fCmd.test failed
Type: Bug Created on: 2019-11-27 08:41:28
Submitter: udok70 Assigned to: nobody
Subsystem: 37. File System Severity: Minor
Priority: 5 Medium Last modified: 2026-11-11 11:01:32
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2026-11-11 11:01:32
Version: 9.0a1
Description:
Build on Windows 10 with MSVC 2019, 64 bit:

nmake -f makefile.vc test fails.

Possibly because there is no pagefile.sys on my Windows.


fCmd.test


==== fCmd-30.3 file readable on 'pagefile.sys' FAILED
==== Contents of test case:

    set r {}
    if {[info exists env(SystemDrive)]} {
        set path $env(SystemDrive)/pagefile.sys
        lappend r exists [file exists $path]
        lappend r readable [file readable $path]
        lappend r stat [catch {file stat $path a} e] $e
    }
    return $r

---- Result was:
exists 0 readable 0 stat 1 {could not read "C:/pagefile.sys": no such file or directory}
---- Result should have been (exact matching):
exists 1 readable 0 stat 0 {}
==== fCmd-30.3 FAILED
User Comments:
serhiy.storchaka added on 2026-10-12 11:33:18:

Proposed fix in branch fCmd-test-constraints: fCmd-30.3 now takes the page files in use from the registry (ExistingPageFiles under HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management) instead of assuming $env(SystemDrive)/pagefile.sys, and is skipped when there is none (new constraint pagefile), e.g. under Wine.


jan.nijtmans added on 2026-11-11 11:01:32:

Fixed in [f9dfe7796a|trunk] and core-9-0-branch.