Have tests read example tree from a generated file, rather than link it in.
This makes the tests more flexible to re-use for testing the output from
the write tests.
diff --git a/tests/setprop_inplace.c b/tests/setprop_inplace.c
index ce19bcc..61de789 100644
--- a/tests/setprop_inplace.c
+++ b/tests/setprop_inplace.c
@@ -31,13 +31,14 @@
int main(int argc, char *argv[])
{
- struct fdt_header *fdt = &_test_tree1;
+ struct fdt_header *fdt;
uint32_t *intp;
char *strp, *xstr;
int xlen, i;
int err;
test_init(argc, argv);
+ fdt = load_blob_arg(argc, argv);
intp = check_getprop_typed(fdt, 0, "prop-int", TEST_VALUE_1);