mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 10:54:42 +00:00
Do not run tests MappedMemoryTest.BasicWrite and MultipleWrite unless both
MF_READ and MF_WRITE are set. llvm-svn: 169439
This commit is contained in:
parent
e054e34b38
commit
92dcde6e6d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user