| 181 | SC_TRY(timeout.start(loop, duration)); |
| 182 | loop.excludeFromActiveCount(timeout); |
| 183 | return SC::Result(true); |
| 184 | } |
| 185 | }; |
| 186 | |
| 187 | static bool compressionTestsAvailable(SC::TestReport& report) |
| 188 | { |
| 189 | (void)(report); |
| 190 | SC::ZLibAPI zlib; |
| 191 | if (not zlib.load()) |
| 192 | { |
| 193 | return false; |
| 194 | } |
| 195 | zlib.unload(); |
| 196 | return true; |
| 197 | } |
| 198 | |
| 199 | static SC::Result decompressForTest(SC::ZLibStream::Algorithm algorithm, SC::Span<const char> input, |
| 200 | SC::Span<char>& decoded) |
| 201 | { |
| 202 | SC::ZLibStream stream; |