mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
some additional comments, remove apt-get from clang jobs, better test titles
This commit is contained in:
8
.github/workflows/dev-long-tests.yml
vendored
8
.github/workflows/dev-long-tests.yml
vendored
@ -81,9 +81,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: clang + ASan + UBSan + Test Zstd
|
- name: clang + ASan + UBSan + Test Zstd
|
||||||
run: |
|
run: CC=clang make -j uasan-test-zstd </dev/null V=1
|
||||||
sudo apt-get -qqq update
|
|
||||||
CC=clang make -j uasan-test-zstd </dev/null V=1
|
|
||||||
|
|
||||||
gcc-asan-ubsan-testzstd-32bit:
|
gcc-asan-ubsan-testzstd-32bit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -114,9 +112,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: clang + ASan + UBSan + Fuzz Test
|
- name: clang + ASan + UBSan + Fuzz Test
|
||||||
run: |
|
run: CC=clang FUZZER_FLAGS="--long-tests" make clean uasan-fuzztest
|
||||||
sudo apt-get -qqq update
|
|
||||||
CC=clang FUZZER_FLAGS="--long-tests" make clean uasan-fuzztest
|
|
||||||
|
|
||||||
gcc-asan-ubsan-fuzz32:
|
gcc-asan-ubsan-fuzz32:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -2059,7 +2059,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inB
|
|||||||
if (ZSTD_isError(decompressedSize)) return decompressedSize;
|
if (ZSTD_isError(decompressedSize)) return decompressedSize;
|
||||||
DEBUGLOG(4, "shortcut to single-pass ZSTD_decompress_usingDDict()")
|
DEBUGLOG(4, "shortcut to single-pass ZSTD_decompress_usingDDict()")
|
||||||
ip = istart + cSize;
|
ip = istart + cSize;
|
||||||
op = op ? op + decompressedSize : op;
|
op = op ? op + decompressedSize : op; /* can occur if frameContentSize = 0 (empty frame) */
|
||||||
zds->expected = 0;
|
zds->expected = 0;
|
||||||
zds->streamStage = zdss_init;
|
zds->streamStage = zdss_init;
|
||||||
someMoreWork = 0;
|
someMoreWork = 0;
|
||||||
@ -2194,7 +2194,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inB
|
|||||||
zds->outStart = zds->outEnd = 0;
|
zds->outStart = zds->outEnd = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}}
|
} }
|
||||||
/* cannot complete flush */
|
/* cannot complete flush */
|
||||||
someMoreWork = 0;
|
someMoreWork = 0;
|
||||||
break;
|
break;
|
||||||
|
@ -522,7 +522,7 @@ static int basicUnitTests(U32 seed, double compressibility)
|
|||||||
}
|
}
|
||||||
DISPLAYLEVEL(3, "OK \n");
|
DISPLAYLEVEL(3, "OK \n");
|
||||||
|
|
||||||
DISPLAYLEVEL(3, "test%3i : NULL buffers : ", testNb++);
|
DISPLAYLEVEL(3, "test%3i : NULL output and NULL input : ", testNb++);
|
||||||
inBuff.src = NULL;
|
inBuff.src = NULL;
|
||||||
inBuff.size = 0;
|
inBuff.size = 0;
|
||||||
inBuff.pos = 0;
|
inBuff.pos = 0;
|
||||||
@ -548,7 +548,9 @@ static int basicUnitTests(U32 seed, double compressibility)
|
|||||||
{ size_t const ret = ZSTD_decompressStream(zd, &outBuff, &inBuff);
|
{ size_t const ret = ZSTD_decompressStream(zd, &outBuff, &inBuff);
|
||||||
if (ret != 0) goto _output_error;
|
if (ret != 0) goto _output_error;
|
||||||
}
|
}
|
||||||
|
DISPLAYLEVEL(3, "OK\n");
|
||||||
|
|
||||||
|
DISPLAYLEVEL(3, "test%3i : NULL output buffer with non-NULL input : ", testNb++);
|
||||||
{
|
{
|
||||||
const char* test = "aa";
|
const char* test = "aa";
|
||||||
inBuff.src = test;
|
inBuff.src = test;
|
||||||
|
Reference in New Issue
Block a user