Skip to content

Commit

Permalink
Fix unittest failure on added Notes.
Browse files Browse the repository at this point in the history
The (new?) output of readelf shows "description data", which causes
the unittest to fail as it doesn't expect the extra line.
  • Loading branch information
madscientist committed Dec 16, 2017
1 parent 0e72fe4 commit 48bb1a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/coredumper_unittest.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ static void CheckExtraNotesWithReadElf(FILE *input, FILE *output,
/* Get the name, its size and the description size. */
line = SkipLeadingWhiteSpace(line);
char *name = line;
/* Ignore "description data" lines */
if (!strncmp(name, "description data:", 17)) {
continue;
}
/* Our test names do not include spaces so this will work. */
while (!isspace(*line) && *line != '\0') {
line++;
Expand Down Expand Up @@ -568,7 +572,7 @@ static void CheckWithGDB(FILE *input, FILE *output, const char *filename,
}
puts("");
}

assert(*dummy == cmp);
printf("Magic marker matches %d\n", *dummy);
}
Expand Down

0 comments on commit 48bb1a8

Please sign in to comment.