Skip to content

Commit

Permalink
Better check for zstd presence
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Jul 3, 2023
1 parent 1a26298 commit f14aa15
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/test_filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@
int main(void) {
blosc2_init();
srand(0);
char *libname = NULL;
char *version = NULL;
int ret = blosc2_get_complib_info("zstd", &libname, &version);
if (libname != NULL) {
free(libname);
free(version);
}
if (ret < 0) {
if (blosc2_compname_to_compcode("zstd") < 0) {
// We need ZSTD for the test here...
return 0;
}
Expand Down

0 comments on commit f14aa15

Please sign in to comment.