]> Git Repo - J-linux.git/commitdiff
kunit: Fix the comment of KUNIT_ASSERT_STRNEQ as assertion
authorEric Chan <[email protected]>
Thu, 11 Jul 2024 19:39:17 +0000 (19:39 +0000)
committerShuah Khan <[email protected]>
Fri, 12 Jul 2024 16:12:00 +0000 (10:12 -0600)
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 <[email protected]>
Reviewed-by: David Gow <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
include/kunit/test.h

index ec61cad6b71db2a92b58b2d453b45d73f49d37a9..e37df1df5a92035fb469ae794c98b4106a07c49c 100644 (file)
@@ -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.
This page took 0.050722 seconds and 4 git commands to generate.