Skip to content

fix: add alternate expected output for Linux and Windows - #73

Open
zainedb wants to merge 1 commit into
masterfrom
fix/regression-platform-alternates
Open

fix: add alternate expected output for Linux and Windows#73
zainedb wants to merge 1 commit into
masterfrom
fix/regression-platform-alternates

Conversation

@zainedb

@zainedb zainedb commented Aug 31, 2026

Copy link
Copy Markdown

Summary

  • The regression suite's expected/system_stats.out was written on macOS. Linux and Windows populate different subsets of system-info columns, causing make installcheck to fail on those platforms.
  • Adds expected/system_stats_1.out (Linux) and expected/system_stats_2.out (Windows) as pg_regress alternate expected output files, so the suite passes on all three platforms natively.

Platform differences

Column macOS (baseline) Linux Windows
handle_count NULL populated populated
thread_count NULL populated populated
logical_processors > 0 0 (container) > 0
clock_speed NULL populated populated
swap_total populated populated NULL
usermode / kernelmode populated populated NULL
io_valid NULL populated NULL
sleeping / zombie populated populated NULL

Test plan

  • Run make installcheck on macOS — should match system_stats.out
  • Run make installcheck on Linux — should match system_stats_1.out
  • Run make installcheck on Windows — should match system_stats_2.out

The regression suite's expected/system_stats.out was written on macOS.
Linux and Windows each populate different subsets of system-info columns,
causing installcheck to fail on those platforms.

Add pg_regress alternate expected output files so the suite passes on
all three platforms without external patches:

- system_stats_1.out: Linux (handle_count, thread_count, clock_speed
  populated; logical_processors reports 0 in containers)
- system_stats_2.out: Windows (no swap_total, no usermode/kernelmode
  CPU usage, no sleeping/zombie process states)
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.

1 participant