Merge pull request #2944
223e3788
unit_tests: fix memwipe test comparison (moneromooo-monero)
This commit is contained in:
commit
838b2e8a52
|
@ -47,7 +47,7 @@ static void test(bool wipe)
|
||||||
if ((intptr_t)quux == foop)
|
if ((intptr_t)quux == foop)
|
||||||
{
|
{
|
||||||
MDEBUG(std::hex << std::setw(8) << std::setfill('0') << *(uint32_t*)quux);
|
MDEBUG(std::hex << std::setw(8) << std::setfill('0') << *(uint32_t*)quux);
|
||||||
if (wipe) ASSERT_TRUE(!memcmp(quux, "\0\0\0", 3));
|
if (wipe) ASSERT_TRUE(memcmp(quux, "bar", 3));
|
||||||
}
|
}
|
||||||
else MWARNING("We did not get the same location, cannot check");
|
else MWARNING("We did not get the same location, cannot check");
|
||||||
free(quux);
|
free(quux);
|
||||||
|
|
Loading…
Reference in New Issue