aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2018-09-03 10:50:36 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2018-09-10 12:19:39 +1000
commit0ac9fdee37c7afe42285bbf197e6e3152b6c6c45 (patch)
tree096c19b7f7d947dc032754f3d0517b6dae06add1
parent0fd1c8c783f3ee31af934ce7aacf8211961e23f2 (diff)
downloaddtc-0ac9fdee37c7afe42285bbf197e6e3152b6c6c45.zip
dtc-0ac9fdee37c7afe42285bbf197e6e3152b6c6c45.tar.gz
dtc-0ac9fdee37c7afe42285bbf197e6e3152b6c6c45.tar.bz2
dtc: trivial '-I fs -O dts' test
Some recent changes caused '-I fs -O dts' to crash instantly when emitting the first property holding actual data, ie, coming from a non-empty file. This got fixed already by another patch. This simply adds a test for the original problem. Signed-off-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rwxr-xr-xtests/run_tests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 7348c9c..e240356 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -448,6 +448,11 @@ libfdt_tests () {
run_test check_header test_tree1.dtb
+ rm -rf fstree
+ mkdir fstree
+ echo -n "foo" > fstree/non_empty_prop
+ run_dtc_test -I fs -O dts fstree
+
# check full tests
for good in test_tree1.dtb; do
run_test check_full $good