Commit Graph
6 Commits
Author SHA1 Message Date
Andrei VaginandgVisor bot bcbd4f6bf6 test: use the init_module syscall to trigger save/restore
create_module isn't defined on arm64

PiperOrigin-RevId: 521866613
2023-04-04 14:32:09 -07:00
Jamie LiuandgVisor bot 114d68adb8 Support VFS2 save/restore.
Inode number consistency checks are now skipped in save/restore tests for
reasons described in greatest detail in StatTest.StateDoesntChangeAfterRename.
They pass in VFS1 due to the bug described in new test case
SimpleStatTest.DifferentFilesHaveDifferentDeviceInodeNumberPairs.

Fixes #1663

PiperOrigin-RevId: 338776148
2020-10-23 17:48:33 -07:00
Dean DengandgVisor bot 0e2c0bf7dc 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
2020-10-16 14:32:49 -07:00
Adin ScannellandgVisor bot 5cd5c2536a Standardize on tools directory.
PiperOrigin-RevId: 291745021
2020-01-27 12:21:00 -08:00
Bin Lu 2c7df3196e Add test/util/save_util_linux.cc:MaybeSave to support arm64
There is no syscall_create_module on Arm64.

Signed-off-by: Bin Lu <[email protected]>
2019-12-30 10:09:48 +08:00
gVisor bot ad24d8ce37 Internal change.
PiperOrigin-RevId: 265535438
2019-08-26 14:07:17 -07:00