Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Chan and committed by
Shuah Khan
2be32bbe 7554a7b9

+2 -2
+2 -2
include/kunit/test.h
··· 1455 1455 ##__VA_ARGS__) 1456 1456 1457 1457 /** 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. 1459 1459 * @test: The test context object. 1460 1460 * @left: an arbitrary expression that evaluates to a null terminated string. 1461 1461 * @right: an arbitrary expression that evaluates to a null terminated string. 1462 1462 * 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 1464 1464 * not equal. This is semantically equivalent to 1465 1465 * KUNIT_ASSERT_TRUE(@test, strcmp((@left), (@right))). See KUNIT_ASSERT_TRUE() 1466 1466 * for more information.