Merge pull request #6573 from hashaam1217/test/agc-frame-dump-pipe-capacity

test(agc): write more pixels than a pipe holds in the closed-pipe case
This commit is contained in:
Adrià authored and GitHub committed 2026-10-16 12:48:14 +02:00
commit 7dcfff559f
1 file changed
+2 -2
@@ -96,8 +96,8 @@ void PixelFailure() {
}
Close(reader);
});
const std::vector<std::byte> pixels(128 * 128 * 4);
const auto failure = AgcDriver::WriteBmpAndClose_nid_no_patch(file, 128, 128, pixels);
const std::vector<std::byte> pixels(512 * 512 * 4);
const auto failure = AgcDriver::WriteBmpAndClose_nid_no_patch(file, 512, 512, pixels);
consumer.join();
Check(received == 54, "pixel failure did not follow a complete BMP header");
Check(failure && std::strcmp(failure.operation, "pixels") == 0, "closed pipe pixel write was accepted");