Enable recently-fixed test case for shm_test.
PiperOrigin-RevId: 225887356 Change-Id: Iee000dcfc9e0168c2566edf41c66108be9b68cd6
This commit is contained in:
parent
faabaad5a2
commit
e9c4f69f36
|
@ -427,6 +427,13 @@ TEST(ShmTest, RequestingDuplicateCreationFails) {
|
||||||
PosixErrorIs(EEXIST, _));
|
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) {
|
TEST(ShmTest, SegmentsSizeFixedOnCreation) {
|
||||||
const TempPath keyfile = ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateFile());
|
const TempPath keyfile = ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateFile());
|
||||||
const key_t key = ftok(keyfile.path().c_str(), 1);
|
const key_t key = ftok(keyfile.path().c_str(), 1);
|
||||||
|
|
Loading…
Reference in New Issue