mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-25 14:00:57 +08:00
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:
parent
70ccb76751
commit
6c57c083e6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user