Skip to content

Add CLOCK_BOOTTIME coverage for clock syscalls#13273

Open
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:codex/gvisor-boottime-clock-tests
Open

Add CLOCK_BOOTTIME coverage for clock syscalls#13273
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:codex/gvisor-boottime-clock-tests

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

Description

Add explicit syscall test coverage for CLOCK_BOOTTIME.

  • Parameterize clock_getres coverage over CLOCK_MONOTONIC and CLOCK_BOOTTIME.
  • Include CLOCK_BOOTTIME in the clock_nanosleep wall-clock test matrix.

gVisor already maps CLOCK_BOOTTIME to the monotonic clock, and existing tests cover clock_gettime, VDSO clock_gettime, and timerfd behavior. This extends regression coverage to the remaining clock syscall paths that accept CLOCK_BOOTTIME.

Updates #218

Tests

  • git diff --check
  • bazel build --nobuild //test/syscalls/linux:clock_getres_test //test/syscalls/linux:clock_nanosleep_test

@Haihan-Jiang Haihan-Jiang marked this pull request as ready for review May 24, 2026 10:26
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