Skip to content

Commit 1806838

Browse files
committed
Merge tag 'linux_kselftest-kunit-fixes-6.18-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kunit fixes from Shuah Khan: "Fix log overwrite in param_tests and fixes incorrect cast of priv pointer in test_dev_action(). Update email address for Rae Moar in MAINTAINERS KUnit entry" * tag 'linux_kselftest-kunit-fixes-6.18-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: MAINTAINERS: Update KUnit email address for Rae Moar kunit: prevent log overwrite in param_tests kunit: test_dev_action: Correctly cast 'priv' pointer to long*
2 parents a5355e9 + f3903ec commit 1806838

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ Qais Yousef <[email protected]> <[email protected]>
644644
645645
646646
647+
647648
648649
649650

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13612,7 +13612,7 @@ F: fs/smb/server/
1361213612
KERNEL UNIT TESTING FRAMEWORK (KUnit)
1361313613
M: Brendan Higgins <[email protected]>
1361413614
M: David Gow <[email protected]>
13615-
R: Rae Moar <rmoar@google.com>
13615+
R: Rae Moar <raemoar63@gmail.com>
1361613616
1361713617
1361813618
S: Maintained

lib/kunit/kunit-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ static struct kunit_case kunit_current_test_cases[] = {
739739

740740
static void test_dev_action(void *priv)
741741
{
742-
*(void **)priv = (void *)1;
742+
*(long *)priv = 1;
743743
}
744744

745745
static void kunit_device_test(struct kunit *test)

lib/kunit/test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ int kunit_run_tests(struct kunit_suite *suite)
745745
.param_index = ++test.param_index,
746746
.parent = &test,
747747
};
748-
kunit_init_test(&param_test, test_case->name, test_case->log);
748+
kunit_init_test(&param_test, test_case->name, NULL);
749+
param_test.log = test_case->log;
749750
kunit_run_case_catch_errors(suite, test_case, &param_test);
750751

751752
if (param_desc[0] == '\0') {

0 commit comments

Comments
 (0)