and errmsg is empty. Otherwise success is False and errmsg holds a
description of the mismatch.
"""
+ # llvm-dwarfdump sometimes adds a comment to addresses. We still haven't invested the
+ # effort to understand exactly when. For now, removing the section comment helps us pass
+ # the test.
+ s1 = s1.replace('(0x0000000000000000 ".text")', '(0x0000000000000000)')
+
def prepare_lines(s):
return [line for line in s.lower().splitlines() if line.strip() != '']