[llvm-commits] [llvm] r169439 - /llvm/trunk/unittests/Support/MemoryTest.cpp
Akira Hatanaka
ahatanaka at mips.com
Wed Dec 5 14:43:07 PST 2012
Author: ahatanak
Date: Wed Dec 5 16:43:07 2012
New Revision: 169439
URL: http://llvm.org/viewvc/llvm-project?rev=169439&view=rev
Log:
Do not run tests MappedMemoryTest.BasicWrite and MultipleWrite unless both
MF_READ and MF_WRITE are set.
Modified:
llvm/trunk/unittests/Support/MemoryTest.cpp
Modified: llvm/trunk/unittests/Support/MemoryTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/MemoryTest.cpp?rev=169439&r1=169438&r2=169439&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/MemoryTest.cpp (original)
+++ llvm/trunk/unittests/Support/MemoryTest.cpp Wed Dec 5 16:43:07 2012
@@ -98,8 +98,9 @@
}
TEST_P(MappedMemoryTest, BasicWrite) {
- // This test applies only to writeable combinations
- if (Flags && !(Flags & Memory::MF_WRITE))
+ // This test applies only to readable and writeable combinations
+ if (Flags &&
+ !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
return;
error_code EC;
@@ -117,8 +118,9 @@
}
TEST_P(MappedMemoryTest, MultipleWrite) {
- // This test applies only to writeable combinations
- if (Flags && !(Flags & Memory::MF_WRITE))
+ // This test applies only to readable and writeable combinations
+ if (Flags &&
+ !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
return;
error_code EC;
MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), 0, Flags, EC);
More information about the llvm-commits
mailing list