Fix sign-compare compiler warning in MicrodumpWriterTest
Commit 7a8980997d
introduced additional
tests into MicrodumpWriterTest, two of which throw warnings which break
"make check" under default settings on Linux, because the Makefiles are
configured with -Werror=sign-compare.
This patch just makes the signedness of the assertion arguments match.
Change-Id: Ib522f44205c84f91bc9b93276fad60ebbf005f60
Reviewed-on: https://chromium-review.googlesource.com/418938
Reviewed-by: Tobias Sargeant <tobiasjs@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
c13d6fa467
commit
5c42d7288a
@ -246,7 +246,7 @@ TEST(MicrodumpWriterTest, NoOutputIfUninteresting) {
|
||||
MappingList no_mappings;
|
||||
|
||||
CrashAndGetMicrodump(no_mappings, kMicrodumpExtraInfo, &buf);
|
||||
ASSERT_EQ(0, buf.size());
|
||||
ASSERT_EQ(0U, buf.size());
|
||||
}
|
||||
|
||||
// Ensure that output occurs if the interest region is set, and
|
||||
@ -268,7 +268,7 @@ TEST(MicrodumpWriterTest, OutputIfInteresting) {
|
||||
MappingList no_mappings;
|
||||
|
||||
CrashAndGetMicrodump(no_mappings, kMicrodumpExtraInfo, &buf);
|
||||
ASSERT_LT(0, buf.size());
|
||||
ASSERT_LT(0U, buf.size());
|
||||
}
|
||||
|
||||
// Ensure that the product info and build fingerprint metadata show up in the
|
||||
|
Loading…
Reference in New Issue
Block a user