diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-22 10:23:58 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-22 10:23:58 +0000 |
commit | 774cf3190cd99a7476a982563f6cafd0366438fd (patch) | |
tree | 3d36847fab6ee8db2e7c8bf60bdcf8c91bb68d71 /llvm/unittests/Support/MemoryBufferTest.cpp | |
parent | 26c8ea657f3e792e17e1dd35fe79489e36958832 (diff) | |
download | bcm5719-llvm-774cf3190cd99a7476a982563f6cafd0366438fd.tar.gz bcm5719-llvm-774cf3190cd99a7476a982563f6cafd0366438fd.zip |
MemoryBufferTest.cpp: Tweak offset corresponding to the case that PageSize is greater than 8000.
PageSize, aka AllocationGranularity, is 65536 on Win32 (and Cygwin).
llvm-svn: 188999
Diffstat (limited to 'llvm/unittests/Support/MemoryBufferTest.cpp')
-rw-r--r-- | llvm/unittests/Support/MemoryBufferTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/MemoryBufferTest.cpp b/llvm/unittests/Support/MemoryBufferTest.cpp index de1dbb7ae4d..4f17db2c76d 100644 --- a/llvm/unittests/Support/MemoryBufferTest.cpp +++ b/llvm/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); |