diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-05 22:43:07 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-12-05 22:43:07 +0000 |
commit | c4c14a7b4a14c30b4fc7b130eb003ea7e4449e41 (patch) | |
tree | 8d610f0b26878f9a7bcbcec3087f8d02d5dd5afe /unittests | |
parent | 1246700d1b5eb5aea5826b6ceed01e3a67ca9a28 (diff) | |
download | external_llvm-c4c14a7b4a14c30b4fc7b130eb003ea7e4449e41.zip external_llvm-c4c14a7b4a14c30b4fc7b130eb003ea7e4449e41.tar.gz external_llvm-c4c14a7b4a14c30b4fc7b130eb003ea7e4449e41.tar.bz2 |
Do not run tests MappedMemoryTest.BasicWrite and MultipleWrite unless both
MF_READ and MF_WRITE are set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/MemoryTest.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/unittests/Support/MemoryTest.cpp b/unittests/Support/MemoryTest.cpp index f4e4f15..4164713 100644 --- a/unittests/Support/MemoryTest.cpp +++ b/unittests/Support/MemoryTest.cpp @@ -98,8 +98,9 @@ TEST_P(MappedMemoryTest, MultipleAllocAndRelease) { } 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, BasicWrite) { } 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); |