[Crosstoolchain-logs] [device-tree-compiler] 186/357: dtc: Better exercise dtc base and bytestring features
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 9409bd96a56b914baf5bfa802bc6a56fff5698e6
Author: David Gibson <david at gibson.dropbear.id.au>
Date: Wed Nov 7 10:58:22 2007 +1100
dtc: Better exercise dtc base and bytestring features
This patch alters the main testcase, and the dts file corresponding to
it so that we at least trivially exercise dtc's bytestring and base
conversion features.
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
tests/test_tree1.dts | 10 +++++-----
tests/testdata.h | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/test_tree1.dts b/tests/test_tree1.dts
index c5f8da3..ac920df 100644
--- a/tests/test_tree1.dts
+++ b/tests/test_tree1.dts
@@ -1,5 +1,5 @@
/memreserve/ deadbeef00000000-deadbeef000fffff;
-/memreserve/ abcd1234 00001234;
+/memreserve/ 75bcd15 1000;
/ {
compatible = "test_tree1";
@@ -8,20 +8,20 @@
subnode at 1 {
compatible = "subnode1";
- prop-int = <deadbeef>;
+ prop-int = [deadbeef];
subsubnode {
compatible = "subsubnode1", "subsubnode";
- prop-int = <deadbeef>;
+ prop-int = <h# deadbeef>;
};
};
subnode at 2 {
- prop-int = <abcd1234>;
+ prop-int = <d# 123456789>;
subsubnode at 0 {
compatible = "subsubnode2", "subsubnode";
- prop-int = <abcd1234>;
+ prop-int = <o# 0726746425>;
};
};
};
diff --git a/tests/testdata.h b/tests/testdata.h
index 94f3dee..027d972 100644
--- a/tests/testdata.h
+++ b/tests/testdata.h
@@ -17,11 +17,11 @@
#define TEST_ADDR_1 ASM_CONST_LL(0xdeadbeef00000000)
#define TEST_SIZE_1 ASM_CONST_LL(0x100000)
-#define TEST_ADDR_2 ASM_CONST_LL(0xabcd1234)
-#define TEST_SIZE_2 ASM_CONST_LL(0x1234)
+#define TEST_ADDR_2 ASM_CONST_LL(123456789)
+#define TEST_SIZE_2 ASM_CONST_LL(010000)
#define TEST_VALUE_1 cell_to_fdt(0xdeadbeef)
-#define TEST_VALUE_2 cell_to_fdt(0xabcd1234)
+#define TEST_VALUE_2 cell_to_fdt(123456789)
#define TEST_STRING_1 "hello world"
#define TEST_STRING_2 "nastystring: \a\b\t\n\v\f\r\\\""
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list