Skip to content

test(check.rb): improve total_physical_memory#800

Open
tueda wants to merge 1 commit intoform-dev:masterfrom
tueda:pr/test/improve-total_physical_memory
Open

test(check.rb): improve total_physical_memory#800
tueda wants to merge 1 commit intoform-dev:masterfrom
tueda:pr/test/improve-total_physical_memory

Conversation

@tueda
Copy link
Collaborator

@tueda tueda commented Feb 18, 2026

I thought the free command was always available on Linux systems, but it turns out that it is not installed by default in Fedora container images. This PR makes check.rb read /proc/meminfo instead of using free -b.

The PR also changes the code for Windows, replacing the use of the deprecated wmic command with Windows PowerShell. wmic is not available by default starting with Windows 11 version 24H2, while PowerShell (version 3.0 or later, powershell.exe) is available by default on Windows 8 / Windows Server 2012 or later.

- On Linux, read /proc/meminfo directly instead of using free.
- On Windows, replace deprecated wmic with PowerShell.
@tueda tueda force-pushed the pr/test/improve-total_physical_memory branch from fb0bf58 to ca4f88a Compare February 18, 2026 07:37
@coveralls
Copy link

Coverage Status

coverage: 58.046% (+0.006%) from 58.04%
when pulling ca4f88a on tueda:pr/test/improve-total_physical_memory
into 9b0d11c on form-dev:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants