mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
UTs: Fix AlignedAllocator.Realloc test
_aligned_realloc may return the same pointer if the internal implementation finds it suitable. Fixes Windows' builds.
This commit is contained in:
parent
14bd6b0cc5
commit
cae77784db
|
|
@ -341,7 +341,6 @@ namespace rsx
|
||||||
const auto ptr_value = reinterpret_cast<uintptr_t>(ptr2);
|
const auto ptr_value = reinterpret_cast<uintptr_t>(ptr2);
|
||||||
rsx::aligned_allocator::free(ptr2);
|
rsx::aligned_allocator::free(ptr2);
|
||||||
|
|
||||||
EXPECT_NE(ptr, ptr2);
|
|
||||||
EXPECT_NE(ptr_value, 0);
|
EXPECT_NE(ptr_value, 0);
|
||||||
EXPECT_EQ(ptr_value % 256, 0);
|
EXPECT_EQ(ptr_value % 256, 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue