aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-08-22 10:23:58 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-08-22 10:23:58 +0000
commit4efbeb2700506fa1cbbca5e487b57eaad05c60ed (patch)
tree35221f7ea188e15d96208c3e2c12903fd8d3bca8 /unittests
parent378cd84adfe988166c3a45005043b506e3485c34 (diff)
downloadexternal_llvm-4efbeb2700506fa1cbbca5e487b57eaad05c60ed.tar.gz
external_llvm-4efbeb2700506fa1cbbca5e487b57eaad05c60ed.tar.bz2
external_llvm-4efbeb2700506fa1cbbca5e487b57eaad05c60ed.zip
MemoryBufferTest.cpp: Tweak offset corresponding to the case that PageSize is greater than 8000.
PageSize, aka AllocationGranularity, is 65536 on Win32 (and Cygwin). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/MemoryBufferTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/MemoryBufferTest.cpp b/unittests/Support/MemoryBufferTest.cpp
index de1dbb7ae4..4f17db2c76 100644
--- a/unittests/Support/MemoryBufferTest.cpp
+++ b/unittests/Support/MemoryBufferTest.cpp
@@ -128,7 +128,7 @@ void MemoryBufferTest::testGetOpenFileSlice(bool Reopen) {
OwningBuffer Buf;
error_code EC = MemoryBuffer::getOpenFileSlice(TestFD, TestPath.c_str(), Buf,
40000, // Size
- 8000 // Offset
+ 80000 // Offset
);
EXPECT_FALSE(EC);