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)
commit5ca1b0dd016701f67994414a2af50dec6efcf103
tree4295df55a3f61637883962a316d200060b480a38
parentd7c146053dd195b90c79b9b8131431f44541d015
of: unittest: Add option string test case with longer path

There were regressions seen with commit 106937e8ccdc ("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