From 324781da4daa58e084b0389783ed6fdfbfa5529b Mon Sep 17 00:00:00 2001 From: Fiona Trahe Date: Fri, 5 Jul 2019 18:19:10 +0100 Subject: [PATCH] test/compress: clarify out-of-space error messages Use ERR rather than INFO to warn that it's a negative test else the errors are seen but the warning to expect them isn't. Also add comment to make it easier to follow code. Signed-off-by: Fiona Trahe Acked-by: Adam Dybkowski --- app/test/test_compressdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_compressdev.c b/app/test/test_compressdev.c index cf78775f73..65889c242f 100644 --- a/app/test/test_compressdev.c +++ b/app/test/test_compressdev.c @@ -1870,7 +1870,7 @@ test_compressdev_out_of_space_buffer(void) uint16_t i; const struct rte_compressdev_capabilities *capab; - RTE_LOG(INFO, USER1, "This is a negative test errors are expected\n"); + RTE_LOG(ERR, USER1, "This is a negative test errors are expected\n"); capab = rte_compressdev_capability_get(0, RTE_COMP_ALGO_DEFLATE); TEST_ASSERT(capab != NULL, "Failed to retrieve device capabilities"); @@ -1901,7 +1901,7 @@ test_compressdev_out_of_space_buffer(void) RTE_COMP_OP_STATELESS, LB_BOTH, ZLIB_DECOMPRESS, - 1, + 1, /* run out-of-space test */ 0 }; /* Compress with compressdev, decompress with Zlib */ -- 2.20.1