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

Configure Feed

Select the types of activity you want to include in your feed.

of: unittest: Add separators to of_unittest_overlay_high_level()

It is hard to see the start and end of each individual test in
of_unittest_overlay_high_level(). Add visual cues in the form of
separator comments, like was done in of_unittest_overlay_notify().

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/84530100a54a1fac932008057746015e65bc4d9a.1690533838.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Geert Uytterhoeven and committed by
Rob Herring
ee32072f 0676aeec

+10
+10
drivers/of/unittest.c
··· 3654 3654 3655 3655 /* now do the normal overlay usage test */ 3656 3656 3657 + /* --- overlay --- */ 3658 + 3657 3659 EXPECT_BEGIN(KERN_ERR, 3658 3660 "OF: overlay: WARNING: memory leak will occur if overlay removed, property: /testcase-data-2/substation@100/status"); 3659 3661 EXPECT_BEGIN(KERN_ERR, ··· 3706 3704 3707 3705 unittest(ret, "Adding overlay 'overlay' failed\n"); 3708 3706 3707 + /* --- overlay_bad_add_dup_node --- */ 3708 + 3709 3709 EXPECT_BEGIN(KERN_ERR, 3710 3710 "OF: overlay: ERROR: multiple fragments add and/or delete node /testcase-data-2/substation@100/motor-1/controller"); 3711 3711 EXPECT_BEGIN(KERN_ERR, ··· 3728 3724 "OF: overlay: ERROR: multiple fragments add, update, and/or delete property /testcase-data-2/substation@100/motor-1/controller/name"); 3729 3725 EXPECT_END(KERN_ERR, 3730 3726 "OF: overlay: ERROR: multiple fragments add and/or delete node /testcase-data-2/substation@100/motor-1/controller"); 3727 + 3728 + /* --- overlay_bad_add_dup_prop --- */ 3731 3729 3732 3730 EXPECT_BEGIN(KERN_ERR, 3733 3731 "OF: overlay: ERROR: multiple fragments add and/or delete node /testcase-data-2/substation@100/motor-1/electric"); ··· 3756 3750 EXPECT_END(KERN_ERR, 3757 3751 "OF: overlay: ERROR: multiple fragments add and/or delete node /testcase-data-2/substation@100/motor-1/electric"); 3758 3752 3753 + /* --- overlay_bad_phandle --- */ 3754 + 3759 3755 unittest(overlay_data_apply("overlay_bad_phandle", NULL), 3760 3756 "Adding overlay 'overlay_bad_phandle' failed\n"); 3757 + 3758 + /* --- overlay_bad_symbol --- */ 3761 3759 3762 3760 EXPECT_BEGIN(KERN_ERR, 3763 3761 "OF: changeset: apply failed: REMOVE_PROPERTY /testcase-data-2/substation@100/hvac-medium-2:name");