1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 /*
3  * libfdt - Flat Device Tree manipulation
4  *	Testcase for fdt_property_offset()
5  * Copyright (C) 2006 David Gibson, IBM Corporation.
6  */
7 #include <stdlib.h>
8 #include <stdio.h>
9 #include <string.h>
10 #include <stdint.h>
11 
12 #include <libfdt.h>
13 
14 #include "tests.h"
15 #include "testdata.h"
16 
main(int argc,char * argv[])17 int main(int argc, char *argv[])
18 {
19 	void *fdt;
20 
21 	test_init(argc, argv);
22 	fdt = load_blob_arg(argc, argv);
23 
24 	check_property_cell(fdt, 0, "prop-int", TEST_VALUE_1);
25 	check_property(fdt, 0, "prop-str", strlen(TEST_STRING_1)+1, TEST_STRING_1);
26 
27 	PASS();
28 }
29