Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 48: [PATCH 48/68] test: align regressions with native build contracts

src/test/streams_tests.cpp

Before: src/test/streams_tests.cpp · After: src/test/streams_tests.cpp

File metadata
index 468184ece9bbbaf2b0414ea1a402a6df5f958aa2..1760b8515f22430ca6957a0f57d7ba2df87dcabf 100644

Download original patch · Release notes

Diff rows 1–7 of 7. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

src/test/streams_tests.cpp CHANGED
@@ -95,6 +95,7 @@ BOOST_AUTO_TEST_CASE(autofile_empty_write)
95
  AutoFile file{fsbridge::fopen(path, "wb")};
96
  file << std::span{empty};
97
  file << std::byte{0x2a};
 
98
  }
99
  {
100
  AutoFile file{fsbridge::fopen(path, "rb")};
 
95
  AutoFile file{fsbridge::fopen(path, "wb")};
96
  file << std::span{empty};
97
  file << std::byte{0x2a};
98
+ BOOST_REQUIRE_EQUAL(file.fclose(), 0);
99
  }
100
  {
101
  AutoFile file{fsbridge::fopen(path, "rb")};