From ede8522cbb21f5b89ceceb2e7029fdf1325fb36d Mon Sep 17 00:00:00 2001 From: nhz2 Date: Mon, 16 Dec 2024 22:19:49 -0500 Subject: [PATCH 1/2] Add HDF5 to downstream tests --- .github/workflows/Downstream.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index 0b5fc4a..d0b0798 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -14,6 +14,7 @@ jobs: matrix: package: - "BSDiff" + - "HDF5" steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 From 68515177e7acfdceded0b2835b021f370feefa0d Mon Sep 17 00:00:00 2001 From: nhz2 Date: Mon, 16 Dec 2024 22:24:11 -0500 Subject: [PATCH 2/2] make HDF5 test fail --- src/decompression.jl | 2 +- src/libbzip2.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decompression.jl b/src/decompression.jl index 38220f1..278f446 100644 --- a/src/decompression.jl +++ b/src/decompression.jl @@ -76,7 +76,7 @@ function TranscodingStreams.process(codec::Bzip2Decompressor, input::Memory, out stream.avail_in = input.size stream.next_out = output.ptr stream.avail_out = output.size - code = decompress!(stream) + code = _decompress!(stream) Δin = Int(input.size - stream.avail_in) Δout = Int(output.size - stream.avail_out) if code == BZ_OK diff --git a/src/libbzip2.jl b/src/libbzip2.jl index 5736bac..e0d09c3 100644 --- a/src/libbzip2.jl +++ b/src/libbzip2.jl @@ -161,7 +161,7 @@ function decompress_end!(stream::BZStream) end end -function decompress!(stream::BZStream) +function _decompress!(stream::BZStream) if WIN32 return ccall( ("BZ2_bzDecompress@4", libbzip2),