Skip to content

date: drop unneeded env writes in a unit test - #15472

Merged
cakebaker merged 1 commit into
uutils:mainfrom
ChihweiLHBird:zhiwei/fix-date-test-env-writes
Oct 18, 2026
Merged

cakebaker merged 1 commit into
uutils:mainfrom
ChihweiLHBird:zhiwei/fix-date-test-env-writes

Conversation

@ChihweiLHBird

Copy link
Copy Markdown
Contributor

test_c_locale_format set LC_ALL and cleared LC_TIME and LANG around its measurement, then restored them. The measurement goes through setlocale(LC_TIME, "C"), which takes the locale by name and does not read those variables, so the writes had no effect on the test and only raced the other test threads. Test-only change.

Part of #12238.

Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
@ChihweiLHBird
ChihweiLHBird marked this pull request as ready for review October 18, 2026 08:10
Copilot AI balanced review requested due to automatic review settings October 18, 2026 08:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@cakebaker
cakebaker merged commit 865774e into uutils:main Oct 18, 2026
100 checks passed
@cakebaker

Copy link
Copy Markdown
Contributor

Thanks!

@ChihweiLHBird
ChihweiLHBird deleted the zhiwei/fix-date-test-env-writes branch October 18, 2026 15:44
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.

3 participants