Skip to content

Fix clock tests for unsynced build environments (#523)#523

Closed
leoleovich wants to merge 1 commit into
facebook:mainfrom
leoleovich:export-D105576098
Closed

Fix clock tests for unsynced build environments (#523)#523
leoleovich wants to merge 1 commit into
facebook:mainfrom
leoleovich:export-D105576098

Conversation

@leoleovich
Copy link
Copy Markdown
Contributor

@leoleovich leoleovich commented May 18, 2026

Summary:

Remove state==TIME_OK assertion from TestFrequencyPPB and TestMaxFreqPPB. Build containers don't run NTP/chrony so clock_adjtime returns TIME_ERROR (5), not TIME_OK (0). The state value is system-dependent and not part of the function contract being tested.

Differential Revision: D105576098

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 18, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 18, 2026

@leoleovich has exported this pull request. If you are a Meta employee, you can view the originating Diff in D105576098.

Summary:

Remove state==TIME_OK assertion from TestFrequencyPPB and TestMaxFreqPPB. Build containers don't run NTP/chrony so clock_adjtime returns TIME_ERROR (5), not TIME_OK (0). The state value is system-dependent and not part of the function contract being tested.

Differential Revision: D105576098
@meta-codesync meta-codesync Bot changed the title Fix clock tests for unsynced build environments Fix clock tests for unsynced build environments (#523) May 18, 2026
@leoleovich leoleovich force-pushed the export-D105576098 branch from 7f4c74e to b91e539 Compare May 18, 2026 16:36
@meta-codesync meta-codesync Bot closed this in a264de7 May 18, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 18, 2026

This pull request has been merged in a264de7.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant