Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit effb3013 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix CryptoToolboxTest.bt_spec_test_d_1_test

When moving code, ElementsAreArray matcher was replaced by memcmp to
remove dependency, but "== 0" is missing to actually make sure elements
are same.

Bug: 132863815
Test: CryptoToolboxTest.bt_spec_test_d_1_test
Change-Id: I4069ee3baea9de095b23072820cef3bd0673608a
parent bf03a404
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ TEST(CryptoToolboxTest, bt_spec_test_d_1_test) {
  aes_set_key(k, sizeof(k), &ctx);
  aes_encrypt(m, output, &ctx); /* outputs in byte 48 to byte 63 */

  EXPECT_TRUE(memcmp(output, aes_cmac_k_m, OCTET16_LEN));
  EXPECT_TRUE(memcmp(output, aes_cmac_k_m, OCTET16_LEN) == 0);

  // useful for debugging
  // LOG(INFO) << "k " << base::HexEncode(k, OCTET16_LEN);