|
Zbigniew Jędrzejewski-Szmek |
bed276 |
From 15b947fb798cd131355ba9935802d58e92bdba6e Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
Date: Fri, 4 Mar 2016 21:46:47 -0500
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
Subject: [PATCH] test-compress-benchmark: skip loop iteration if size is 0
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
Otherwise we would hit an assert in the compression code.
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
src/journal/test-compress-benchmark.c | 2 ++
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
1 file changed, 2 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
diff --git a/src/journal/test-compress-benchmark.c b/src/journal/test-compress-benchmark.c
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
index 5b2d130cd6..0ef6d36a50 100644
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
--- a/src/journal/test-compress-benchmark.c
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
+++ b/src/journal/test-compress-benchmark.c
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
@@ -105,6 +105,8 @@ static void test_compress_decompress(const char* label, const char* type,
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
int r;
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
size = permute(i);
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
+ if (size == 0)
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
+ continue;
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
log_debug("%s %zu %zu", type, i, size);
|
|
Zbigniew Jędrzejewski-Szmek |
bed276 |
|