summaryrefslogtreecommitdiffstats
path: root/include/kunit
diff options
context:
space:
mode:
authorEric Chan <ericchancf@google.com>2024-07-11 21:39:17 +0200
committerShuah Khan <skhan@linuxfoundation.org>2024-07-12 18:12:00 +0200
commit2be32bbe6989e071aea1767cb54c7528a0dac07f (patch)
treebfc522cf24f7b7ddab44b8e308ae4dc031e60f18 /include/kunit
parentkunit: executor: Simplify string allocation handling (diff)
downloadlinux-2be32bbe6989e071aea1767cb54c7528a0dac07f.tar.xz
linux-2be32bbe6989e071aea1767cb54c7528a0dac07f.zip
kunit: Fix the comment of KUNIT_ASSERT_STRNEQ as assertion
The current comment for KUNIT_ASSERT_STRNEQ incorrectly describes it as an expectation. Since KUNIT_ASSERT_STRNEQ is an assertion, updates the comment to correctly refer to it as such. Signed-off-by: Eric Chan <ericchancf@google.com> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'include/kunit')
-rw-r--r--include/kunit/test.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kunit/test.h b/include/kunit/test.h
index ec61cad6b71d..e37df1df5a92 100644
--- a/include/kunit/test.h
+++ b/include/kunit/test.h
@@ -1455,12 +1455,12 @@ do { \
##__VA_ARGS__)
/**
- * KUNIT_ASSERT_STRNEQ() - Expects that strings @left and @right are not equal.
+ * KUNIT_ASSERT_STRNEQ() - An assertion that strings @left and @right are not equal.
* @test: The test context object.
* @left: an arbitrary expression that evaluates to a null terminated string.
* @right: an arbitrary expression that evaluates to a null terminated string.
*
- * Sets an expectation that the values that @left and @right evaluate to are
+ * Sets an assertion that the values that @left and @right evaluate to are
* not equal. This is semantically equivalent to
* KUNIT_ASSERT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_ASSERT_TRUE()
* for more information.