fixed playtests on os-x
diff --git a/tests/playTests.sh b/tests/playTests.sh
index 013ba6f..75b334f 100755
--- a/tests/playTests.sh
+++ b/tests/playTests.sh
@@ -32,7 +32,7 @@
esac
MD5SUM="md5sum"
-if [ "$TRAVIS_OS_NAME" = "osx" ]; then
+if [[ "$OSTYPE" == "darwin"* ]]; then
MD5SUM="md5 -r"
fi
diff --git a/tests/zstreamtest.c b/tests/zstreamtest.c
index 4448f23..4c81e8d 100644
--- a/tests/zstreamtest.c
+++ b/tests/zstreamtest.c
@@ -190,7 +190,7 @@
DISPLAYLEVEL(4, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/COMPRESSIBLE_NOISE_LENGTH*100);
DISPLAYLEVEL(4, "test%3i : check CStream size : ", testNb++);
- { size_t const s = ZSTD_sizeofCStream(zc);
+ { size_t const s = ZSTD_sizeof_CStream(zc);
if (ZSTD_isError(s)) goto _output_error;
DISPLAYLEVEL(4, "OK (%u bytes) \n", (U32)s);
}
@@ -227,7 +227,7 @@
DISPLAYLEVEL(4, "OK \n");
DISPLAYLEVEL(4, "test%3i : check DStream size : ", testNb++);
- { size_t const s = ZSTD_sizeofDStream(zd);
+ { size_t const s = ZSTD_sizeof_DStream(zd);
if (ZSTD_isError(s)) goto _output_error;
DISPLAYLEVEL(4, "OK (%u bytes) \n", (U32)s);
}