diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-12-28 08:59:01 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-12-28 08:59:01 +0200 |
commit | 838b2e8a527a8f4008336a98d99e7cb9b18aaf75 (patch) | |
tree | de6b0c7084a11e47252e82542242a52739125455 | |
parent | Merge pull request #2942 (diff) | |
parent | unit_tests: fix memwipe test comparison (diff) | |
download | monero-838b2e8a527a8f4008336a98d99e7cb9b18aaf75.tar.xz |
Merge pull request #2944
223e3788 unit_tests: fix memwipe test comparison (moneromooo-monero)
-rw-r--r-- | tests/unit_tests/memwipe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/memwipe.cpp b/tests/unit_tests/memwipe.cpp index b2b19fbf5..2d8980ef7 100644 --- a/tests/unit_tests/memwipe.cpp +++ b/tests/unit_tests/memwipe.cpp @@ -47,7 +47,7 @@ static void test(bool wipe) if ((intptr_t)quux == foop) { 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"); free(quux); |