Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
deps: update zlib to 1.3.0.1-motley-d3aea23
  • Loading branch information
nodejs-github-bot committed Aug 18, 2024
commit f28003f713542540f9473e7631319826977aef82
5 changes: 3 additions & 2 deletions deps/zlib/google/zip_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ bool CreateFile(const std::string& content,
if (!base::CreateTemporaryFile(file_path))
return false;

if (base::WriteFile(*file_path, content.data(), content.size()) == -1)
if (!base::WriteFile(*file_path, content)) {
return false;
}

*file = base::File(
*file_path, base::File::Flags::FLAG_OPEN | base::File::Flags::FLAG_READ);
Expand Down Expand Up @@ -350,7 +351,7 @@ class ZipTest : public PlatformTest {
base::Time now_time;
EXPECT_TRUE(base::Time::FromUTCExploded(now_parts, &now_time));

EXPECT_EQ(1, base::WriteFile(src_file, "1", 1));
EXPECT_TRUE(base::WriteFile(src_file, "1"));
EXPECT_TRUE(base::TouchFile(src_file, base::Time::Now(), test_mtime));

EXPECT_TRUE(zip::Zip(src_dir, zip_file, true));
Expand Down
2 changes: 1 addition & 1 deletion src/zlib_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// Refer to tools/dep_updaters/update-zlib.sh
#ifndef SRC_ZLIB_VERSION_H_
#define SRC_ZLIB_VERSION_H_
#define ZLIB_VERSION "1.3.0.1-motley-71660e1"
#define ZLIB_VERSION "1.3.0.1-motley-d3aea23"
#endif // SRC_ZLIB_VERSION_H_