]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kunit: test: Log the correct filter string in executor_test
authorDavid Gow <davidgow@google.com>
Wed, 21 Feb 2024 09:27:14 +0000 (17:27 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:18 +0000 (18:19 -0400)
commit8c018386023b949a23a77ba2cd5c43ee626f4609
treeb0bb5c292984a50842d40676538cfa061a92a5db
parentc6f95031cf21701db5d2b449bf77b73e98edabde
kunit: test: Log the correct filter string in executor_test

[ Upstream commit 6f2f793fba78eb4a0d5a34a71bc781118ed923d3 ]

KUnit's executor_test logs the filter string in KUNIT_ASSERT_EQ_MSG(),
but passed a random character from the filter, rather than the whole
string.

This was found by annotating KUNIT_ASSERT_EQ_MSG() to let gcc validate
the format string.

Fixes: 76066f93f1df ("kunit: add tests for filtering attributes")
Signed-off-by: David Gow <davidgow@google.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Justin Stitt <justinstitt@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
lib/kunit/executor_test.c