简体   繁体   中英

Minidump unit test doesn't return true

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?

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM