platform_external_dtc/tests
David Gibson bd2ae2f41c libfdt: Fix handling of trailing / in fdt_path_offset()
Currently, fdt_path_offset() returns FDL_ERR_BADOFFSET if given a path
with a trailing '/'.  In particular this means that
fdt_path_offset("/") returns FDT_ERR_BADOFFSET rather than 0 as one
would expect.

This patch fixes the function to accept and ignore trailing '/'
characters.  As well as allowing fdt_path_offset("/") this means that
fdt_path_offset("/foo/") will return the same as
fdt_path_offset("/foo") which seems in keeping with the principle of
least surprise.

This also adds a testcase to ensure that fdt_path_offset("/") returns
0 as it should.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-08-30 08:42:45 -05:00
..
base01.asm Add some initial test cases. 2007-02-15 11:02:44 -06:00
base01.cmd Add some initial test cases. 2007-02-15 11:02:44 -06:00
base01.dts Add some initial test cases. 2007-02-15 11:02:44 -06:00
base01.stderr Add some initial test cases. 2007-02-15 11:02:44 -06:00
del_node.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
del_property.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
dumptrees.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
empty.dts Add missing file. 2005-07-04 13:51:09 +10:00
find_property.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
getprop.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
label01.dts dtc: add a testcase with labels 2007-07-07 10:14:15 -05:00
Makefile.tests dtc: Improve and better integrate dtc and libfdt Makefiles 2007-06-25 21:50:14 -05:00
move_and_save.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
nop_node.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
nop_property.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
notfound.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
open_pack.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
path_offset.c libfdt: Fix handling of trailing / in fdt_path_offset() 2007-08-30 08:42:45 -05:00
root_node.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
run_tests.sh dtc: Count testcases and results in the dtc/libfdt testsuite 2007-06-25 21:43:03 -05:00
rw_tree1.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
setprop.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
setprop_inplace.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
subnode_offset.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
sw_tree1.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
test01.asm Add some initial test cases. 2007-02-15 11:02:44 -06:00
test01.dts Add some initial test cases. 2007-02-15 11:02:44 -06:00
test01.stderr Add some initial test cases. 2007-02-15 11:02:44 -06:00
testdata.h Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
tests.h Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
testutils.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
trees.S Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
truncated_property.c Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00