0

I have been trying to run this unittest from Google breakpad for minidumps. Now on line 165, it compares the dump written to /temp/ with expected values that are hardcoded. Here, instead of returning true, the ASSERT statement fails.

ASSERT_EQ(memcmp(buffer, expected, expected_byte_count), 0);

Why is this happening?

Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
user1343318
  • 2,093
  • 6
  • 32
  • 59

1 Answers1

0

Why is this happening?

The ASSERT_EQ fails because memcmp(buffer, expected, expected_byte_count) indicates a difference in the contents from buffer and expected.

Did you note there is an #if defined(__BIG_ENDIAN__) used to select the expected values? Did you try un-/providing it alternately?

πάντα ῥεῖ
  • 1
  • 13
  • 116
  • 190