Displaying 2 results from an estimated 2 matches for "a503d7e4".
2012 Dec 05
0
[LLVMdev] [PATCH][Review request] MappedMemoryTest: Prevent tests from running if read flag is not set.
...Memory::allocateMappedMemory(sizeof(int), 0, Flags, EC);
...
int *a = (int*)M1.base();
*a = 1;
EXPECT_EQ(1, *a); // This line segfaults.
...
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121205/a503d7e4/attachment.html>
2012 Dec 04
2
[LLVMdev] [PATCH][Review request] MappedMemoryTest: Prevent tests from running if read flag is not set.
The attached patch prevents MappedMemoryTest.BasicWrite and
MappedMemoryTest.MultipleWrite (both in unittests/Support/MemoryTest.cpp)
from running if the correct protection flags for memory allocation are not
set. Without this patch, the two tests fail when I run "make check-all" on
a mips octeon board.
The problem with the current code is that it allocates a block of memory
without