Skip to content

Commit 2be32bb

Browse files
ericchancfshuahkh
authored andcommitted
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>
1 parent 7554a7b commit 2be32bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/kunit/test.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,12 +1455,12 @@ do { \
14551455
##__VA_ARGS__)
14561456

14571457
/**
1458-
* KUNIT_ASSERT_STRNEQ() - Expects that strings @left and @right are not equal.
1458+
* KUNIT_ASSERT_STRNEQ() - An assertion that strings @left and @right are not equal.
14591459
* @test: The test context object.
14601460
* @left: an arbitrary expression that evaluates to a null terminated string.
14611461
* @right: an arbitrary expression that evaluates to a null terminated string.
14621462
*
1463-
* Sets an expectation that the values that @left and @right evaluate to are
1463+
* Sets an assertion that the values that @left and @right evaluate to are
14641464
* not equal. This is semantically equivalent to
14651465
* KUNIT_ASSERT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_ASSERT_TRUE()
14661466
* for more information.

0 commit comments

Comments
 (0)