mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Enable recently-fixed test case for shm_test.
PiperOrigin-RevId: 225887356 Change-Id: Iee000dcfc9e0168c2566edf41c66108be9b68cd6
This commit is contained in:
@@ -427,6 +427,13 @@ TEST(ShmTest, RequestingDuplicateCreationFails) {
|
||||
PosixErrorIs(EEXIST, _));
|
||||
}
|
||||
|
||||
TEST(ShmTest, NonExistentSegmentsAreNotFound) {
|
||||
const TempPath keyfile = ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateFile());
|
||||
const key_t key = ftok(keyfile.path().c_str(), 1);
|
||||
// Do not request creation.
|
||||
EXPECT_THAT(Shmget(key, kAllocSize, 0777), PosixErrorIs(ENOENT, _));
|
||||
}
|
||||
|
||||
TEST(ShmTest, SegmentsSizeFixedOnCreation) {
|
||||
const TempPath keyfile = ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateFile());
|
||||
const key_t key = ftok(keyfile.path().c_str(), 1);
|
||||
|
||||
Reference in New Issue
Block a user