Fix -Wsign-compare in CrashReportDatabaseTest

Bug: crashpad:42310127
Change-Id: I8a060afd6d976379064c4177a40b337942252087
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5951643
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
This commit is contained in:
Peter Boström 2024-10-22 16:55:55 +11:00 committed by Crashpad LUCI CQ
parent 70ccb76751
commit 6c57c083e6

View File

@ -1005,7 +1005,7 @@ TEST_F(CrashReportDatabaseTest, InitializeFromLargerFileRetainsClientId) {
FileWriter settings_writer;
ASSERT_TRUE(settings_writer.Open(
settings_path, FileWriteMode::kReuseOrFail, FilePermissions::kOwnerOnly));
ASSERT_NE(settings_writer.Seek(0, SEEK_END), 0u);
ASSERT_NE(settings_writer.Seek(0, SEEK_END), 0);
constexpr uint64_t extra_garbage = 0xBADF00D;
ASSERT_TRUE(settings_writer.Write(&extra_garbage, sizeof(extra_garbage)));
settings_writer.Close();