mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
1246700d1b
commit
c4c14a7b4a
@ -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…
Reference in New Issue
Block a user