]> git.baikalelectronics.ru Git - kernel.git/commit
of: unittest: Add option string test case with longer path
authorBrian Norris <computersforpeace@gmail.com>
Tue, 17 Mar 2015 19:30:32 +0000 (12:30 -0700)
committerRob Herring <robh@kernel.org>
Thu, 19 Mar 2015 13:39:44 +0000 (08:39 -0500)
commit3e1589cc603aa33ab86fa3e971ee103d2bce1d53
tree4295df55a3f61637883962a316d200060b480a38
parent07b6e75a72996a0ff78fb86c90fad818ed86ebb6
of: unittest: Add option string test case with longer path

There were regressions seen with commit f611da68c658 ("of: fix handling
of '/' in options for of_find_node_by_path()"), where we couldn't handle
extra '/' before the ':'. Let's test for this now.

Confirmed that this test fails without the previous patch and passes
when patched. All other tests pass.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c