Skip to content

Commit 2f85748

Browse files
committed
move test into a different pr
Created using spr 1.3.4
1 parent 9571c26 commit 2f85748

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

compiler-rt/lib/sanitizer_common/tests/sanitizer_posix_test.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -127,21 +127,6 @@ TEST(SanitizerCommon, TryMemCpyNull) {
127127
EXPECT_FALSE(TryMemCpy(dst.data(), nullptr, dst.size()));
128128
}
129129

130-
TEST(SanitizerCommon, TryMemCpyProtected) {
131-
const int page_size = GetPageSize();
132-
InternalMmapVector<char> src(3 * page_size);
133-
std::iota(src.begin(), src.end(), 123);
134-
std::vector<char> dst;
135-
// Protect the middle page.
136-
mprotect(src.data() + page_size, page_size, PROT_NONE);
137-
138-
dst.assign(src.size(), 0);
139-
EXPECT_FALSE(TryMemCpy(dst.data(), src.data(), dst.size()));
140-
141-
mprotect(src.data() + page_size, page_size, PROT_READ | PROT_WRITE);
142-
EXPECT_TRUE(std::equal(dst.begin(), dst.end(), src.begin()));
143-
}
144-
145130
} // namespace __sanitizer
146131

147132
#endif // SANITIZER_POSIX

0 commit comments

Comments
 (0)