mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
of: unittest: Fix EXPECT for parse_phandle_with_args_map() test
commit0aeae3788eupstream. Commit12e17243d8("of: base: improve error msg in of_phandle_iterator_next()") added printing of the phandle value on error, but failed to update the unittest. Fixes:12e17243d8("of: base: improve error msg in of_phandle_iterator_next()") Cc: stable@vger.kernel.org Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20230801-dt-changeset-fixes-v3-1-5f0410e007dd@kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e75de82b37
commit
2d00ca90b8
@@ -657,12 +657,12 @@ static void __init of_unittest_parse_phandle_with_args_map(void)
|
|||||||
memset(&args, 0, sizeof(args));
|
memset(&args, 0, sizeof(args));
|
||||||
|
|
||||||
EXPECT_BEGIN(KERN_INFO,
|
EXPECT_BEGIN(KERN_INFO,
|
||||||
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle");
|
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle 12345678");
|
||||||
|
|
||||||
rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-phandle",
|
rc = of_parse_phandle_with_args_map(np, "phandle-list-bad-phandle",
|
||||||
"phandle", 0, &args);
|
"phandle", 0, &args);
|
||||||
EXPECT_END(KERN_INFO,
|
EXPECT_END(KERN_INFO,
|
||||||
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle");
|
"OF: /testcase-data/phandle-tests/consumer-b: could not find phandle 12345678");
|
||||||
|
|
||||||
unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc);
|
unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user