diff options
author | Dean Deng <deandeng@google.com> | 2020-10-16 14:30:19 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-16 14:32:49 -0700 |
commit | 4ddb58f6efb3b0bfcce40f8d126973701db89c4b (patch) | |
tree | 4d9f4f2586b8c49a49bc9ba660c0d2efee188ea3 /pkg/sentry/syscalls/linux/sys_write.go | |
parent | dffa4c66909f034429e933f204cd49655c3e224f (diff) |
Use POSIX interval timers in flock test.
ualarm(2) is obsolete. Move IntervalTimer into a test util, where it can be
used by flock tests.
These tests were flaky with TSAN, probably because it slowed the tests down
enough that the alarm was expiring before flock() was called. Use an interval
timer so that even if we miss the first alarm (or more), flock() is still
guaranteed to be interrupted.
PiperOrigin-RevId: 337578751
Diffstat (limited to 'pkg/sentry/syscalls/linux/sys_write.go')
0 files changed, 0 insertions, 0 deletions