From: Saoirse O'Donovan <saoirse.odonovan@intel.com>
To: Thomas Monjalon <thomas@monjalon.net>,
Akhil Goyal <gakhil@marvell.com>,
Fan Zhang <fanzhang.oss@gmail.com>
Cc: dev@dpdk.org, Saoirse O'Donovan <saoirse.odonovan@intel.com>,
stable@dpdk.org, declan.doherty@intel.com
Subject: [PATCH] test/crypto: fix errors for test stats testcase
Date: Mon, 20 Mar 2023 09:29:56 +0000 [thread overview]
Message-ID: <20230320092956.8576-1-saoirse.odonovan@intel.com> (raw)
The test stats testcase was printing the same error message for
multiple errors in the test stats testcase. This is now replaced
with descriptive error messages, which match the cause of the failure.
Fixes: 202d375 ("app/test: add cryptodev unit and performance tests")
Cc: stable@dpdk.org
Cc: declan.doherty@intel.com
Signed-off-by: Saoirse O'Donovan <saoirse.odonovan@intel.com>
---
.mailmap | 1 +
app/test/test_cryptodev.c | 12 ++++++------
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/.mailmap b/.mailmap
index 4018f0fc47..f61972b63d 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1175,6 +1175,7 @@ Sangjin Han <sangjin@eecs.berkeley.edu>
Sankar Chokkalingam <sankarx.chokkalingam@intel.com>
Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Santosh Shukla <santosh.shukla@caviumnetworks.com> <sshukla@mvista.com>
+Saoirse O'Donovan <saoirse.odonovan@intel.com>
Saori Usami <susami@igel.co.jp>
Sarath Somasekharan <sarathx.somasekharan@intel.com>
Sarosh Arif <sarosh.arif@emumba.com>
diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index af3d89b9c7..59cf3ec40f 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -12335,11 +12335,11 @@ test_stats(void)
TEST_ASSERT((stats.enqueued_count == 1),
"rte_cryptodev_stats_get returned unexpected enqueued stat");
TEST_ASSERT((stats.dequeued_count == 1),
- "rte_cryptodev_stats_get returned unexpected enqueued stat");
+ "rte_cryptodev_stats_get returned unexpected dequeued stat");
TEST_ASSERT((stats.enqueue_err_count == 0),
- "rte_cryptodev_stats_get returned unexpected enqueued stat");
+ "rte_cryptodev_stats_get returned unexpected enqueued error count stat");
TEST_ASSERT((stats.dequeue_err_count == 0),
- "rte_cryptodev_stats_get returned unexpected enqueued stat");
+ "rte_cryptodev_stats_get returned unexpected dequeued error count stat");
/* invalid device but should ignore and not reset device stats*/
rte_cryptodev_stats_reset(ts_params->valid_devs[0] + 300);
@@ -12347,7 +12347,7 @@ test_stats(void)
&stats),
"rte_cryptodev_stats_get failed");
TEST_ASSERT((stats.enqueued_count == 1),
- "rte_cryptodev_stats_get returned unexpected enqueued stat");
+ "rte_cryptodev_stats_get returned unexpected enqueued stat after invalid reset");
/* check that a valid reset clears stats */
rte_cryptodev_stats_reset(ts_params->valid_devs[0]);
@@ -12355,9 +12355,9 @@ test_stats(void)
&stats),
"rte_cryptodev_stats_get failed");
TEST_ASSERT((stats.enqueued_count == 0),
- "rte_cryptodev_stats_get returned unexpected enqueued stat");
+ "rte_cryptodev_stats_get returned unexpected enqueued stat after valid reset");
TEST_ASSERT((stats.dequeued_count == 0),
- "rte_cryptodev_stats_get returned unexpected enqueued stat");
+ "rte_cryptodev_stats_get returned unexpected dequeued stat after valid reset");
return TEST_SUCCESS;
}
--
2.25.1
next reply other threads:[~2023-03-20 9:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 9:29 Saoirse O'Donovan [this message]
2023-03-20 9:40 ` Power, Ciara
2023-03-28 6:37 ` Akhil Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230320092956.8576-1-saoirse.odonovan@intel.com \
--to=saoirse.odonovan@intel.com \
--cc=declan.doherty@intel.com \
--cc=dev@dpdk.org \
--cc=fanzhang.oss@gmail.com \
--cc=gakhil@marvell.com \
--cc=stable@dpdk.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).