1 Star 0 Fork 27

桐小哥/zstd

forked from src-openEuler/zstd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
patch-14-fix-pooltests-result-print.patch 2.26 KB
一键复制 编辑 原始数据 按行查看 历史
zxzxzzz 提交于 2021-12-15 15:01 . fix pooltests result print
diff -Nur zstd-1.5.0/tests/poolTests.c zstd-1.5.0-new/tests/poolTests.c
--- zstd-1.5.0/tests/poolTests.c 2021-12-15 14:27:22.047664997 +0800
+++ zstd-1.5.0-new/tests/poolTests.c 2021-12-15 14:40:08.926050471 +0800
@@ -235,7 +235,7 @@
if (POOL_create(0, 1)) { /* should not be possible */
printf("FAIL: should not create POOL with 0 threads\n");
- DISPLAY("==== results; passed: 0/1, failed: 0/1, skipped: 0/1 ====\n");
+ DISPLAY("==== results: passed: 0/1, failed: 0/1, skipped: 0/1 ====\n");
return 1;
}
@@ -246,14 +246,14 @@
(unsigned)queueSize, (unsigned)numThreads);
if (testOrder(numThreads, queueSize)) {
printf("FAIL: testOrder\n");
- DISPLAY("==== results; passed: %d/%d, failed: 1/%d, skipped: 0/%d ====\n",
+ DISPLAY("==== results: passed: %d/%d, failed: 1/%d, skipped: 0/%d ====\n",
testNb, (testNb+1), (testNb+1), (testNb+1));
return 1;
}
printf("SUCCESS: testOrder\n");testNb++;
if (testWait(numThreads, queueSize)) {
printf("FAIL: testWait\n");
- DISPLAY("==== results; passed: %d/%d, failed: 1/%d, skipped: 0/%d ====\n",
+ DISPLAY("==== results: passed: %d/%d, failed: 1/%d, skipped: 0/%d ====\n",
testNb, (testNb+1), (testNb+1), (testNb+1));
return 1;
}
@@ -263,7 +263,7 @@
if (testThreadReduction()) {
printf("FAIL: thread reduction not effective \n");
- DISPLAY("==== results; passed: %d/%d, failed: 1/%d, skipped: 0/%d ====\n",
+ DISPLAY("==== results: passed: %d/%d, failed: 1/%d, skipped: 0/%d ====\n",
testNb, (testNb+1), (testNb+1), (testNb+1));
return 1;
} else {
@@ -272,7 +272,7 @@
if (testAbruptEnding()) {
printf("FAIL: jobs in queue not completed on early end \n");
- DISPLAY("==== results; passed: %d/%d, failed: 1/%d, skipped: 0/%d ====\n",
+ DISPLAY("==== results: passed: %d/%d, failed: 1/%d, skipped: 0/%d ====\n",
testNb, (testNb+1), (testNb+1), (testNb+1));
return 1;
} else {
@@ -280,7 +280,7 @@
}
printf("PASS: all POOL tests\n");
- DISPLAY("==== results; passed: %d/%d, failed: 0/%d, skipped: 0/%d ====\n",
+ DISPLAY("==== results: passed: %d/%d, failed: 0/%d, skipped: 0/%d ====\n",
testNb, testNb, testNb, testNb);
return 0;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tong_1001/zstd.git
[email protected]:tong_1001/zstd.git
tong_1001
zstd
zstd
master

搜索帮助