mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
test/syscalls: fix the duplicate test case
Currently, the NoSigBusOnPagesBeforeEOF and NoSigBusOnPageContainingEOF test cases are identical. This patch corrects the addr accessed in the former test to match the corresponding comment. Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
This commit is contained in:
@@ -1481,7 +1481,7 @@ TEST_P(MMapFileParamTest, NoSigBusOnPagesBeforeEOF) {
|
||||
SyscallSucceeds());
|
||||
|
||||
// The test passes if this survives.
|
||||
auto* start = reinterpret_cast<volatile char*>(addr + (kPageSize / 2) + 1);
|
||||
auto* start = reinterpret_cast<volatile char*>(addr);
|
||||
size_t len = strlen(kFileContents);
|
||||
if (prot() & PROT_WRITE) {
|
||||
std::copy(kFileContents, kFileContents + len, start);
|
||||
|
||||
Reference in New Issue
Block a user