Lines Matching refs:unittest
41 #define unittest(result, fmt, ...) ({ \ macro
87 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
94 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name()
98 unittest(np && name && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
105 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
112 unittest(!np, "trailing '/' on testcase-alias/ should fail\n"); in of_unittest_find_node_by_name()
116 unittest(np && name && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
122 unittest(!np, "non-existent path returned node %pOF\n", np); in of_unittest_find_node_by_name()
126 unittest(!np, "non-existent alias returned node %pOF\n", np); in of_unittest_find_node_by_name()
130 unittest(!np, "non-existent alias with relative path returned node %pOF\n", np); in of_unittest_find_node_by_name()
134 unittest(np && !strcmp("testoption", options), in of_unittest_find_node_by_name()
139 unittest(np && !strcmp("test/option", options), in of_unittest_find_node_by_name()
144 unittest(np && !strcmp("test/option", options), in of_unittest_find_node_by_name()
149 unittest(np, "NULL option path test failed\n"); in of_unittest_find_node_by_name()
154 unittest(np && !strcmp("testaliasoption", options), in of_unittest_find_node_by_name()
160 unittest(np && !strcmp("test/alias/option", options), in of_unittest_find_node_by_name()
165 unittest(np, "NULL option alias path test failed\n"); in of_unittest_find_node_by_name()
170 unittest(np && !options, "option clearing test failed\n"); in of_unittest_find_node_by_name()
175 unittest(np && !options, "option clearing root node test failed\n"); in of_unittest_find_node_by_name()
193 unittest(0, "kzalloc() failed\n"); in of_unittest_dynamic()
201 unittest(of_add_property(np, prop) == 0, "Adding a new property failed\n"); in of_unittest_dynamic()
208 unittest(of_add_property(np, prop) != 0, in of_unittest_dynamic()
214 unittest(of_update_property(np, prop) == 0, in of_unittest_dynamic()
222 unittest(of_update_property(np, prop) == 0, in of_unittest_dynamic()
226 unittest(of_remove_property(np, prop) == 0, in of_unittest_dynamic()
234 unittest(prop->value != NULL, "Unable to allocate large buffer\n"); in of_unittest_dynamic()
236 unittest(of_add_property(np, prop) == 0, in of_unittest_dynamic()
272 unittest(child_count > 0, "Device node data structure is corrupted\n"); in of_unittest_check_tree_linkage()
273 unittest(child_count == allnode_count, in of_unittest_check_tree_linkage()
296 unittest((strcmp(buf, expected) == 0) && (buf[size+1] == 0xff), in of_unittest_printf_one()
306 unittest(strncmp(buf, expected, size) == 0 && (buf[size+1] == 0xff), in of_unittest_printf_one()
321 unittest(np, "testcase data missing\n"); in of_unittest_printf()
381 unittest(dup_count == 0, "Found %i duplicates in %i phandles\n", in of_unittest_check_phandles()
404 unittest(rc == 7, "of_count_phandle_with_args() returned %i, expected 7\n", rc); in of_unittest_parse_phandle_with_args()
458 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_phandle_with_args()
469 unittest(rc == -ENOENT, "expected:%i got:%i\n", -ENOENT, rc); in of_unittest_parse_phandle_with_args()
472 unittest(rc == -ENOENT, "expected:%i got:%i\n", -ENOENT, rc); in of_unittest_parse_phandle_with_args()
486 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
497 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
511 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
522 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
536 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
547 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args()
578 unittest(rc == 8, "of_count_phandle_with_args() returned %i, expected 8\n", rc); in of_unittest_parse_phandle_with_args_map()
644 unittest(passed, "index %i - data error on node %s rc=%i\n", in of_unittest_parse_phandle_with_args_map()
655 unittest(rc == -ENOENT, "expected:%i got:%i\n", -ENOENT, rc); in of_unittest_parse_phandle_with_args_map()
668 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args_map()
681 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args_map()
694 unittest(rc == -EINVAL, "expected:%i got:%i\n", -EINVAL, rc); in of_unittest_parse_phandle_with_args_map()
697 unittest(prefs[i] == OF_KREF_READ(p[i]), in of_unittest_parse_phandle_with_args_map()
717 unittest(rc == 0, "first expected:0 got:%i\n", rc); in of_unittest_property_string()
719 unittest(rc == 1, "second expected:1 got:%i\n", rc); in of_unittest_property_string()
721 unittest(rc == 2, "third expected:2 got:%i\n", rc); in of_unittest_property_string()
723 unittest(rc == -ENODATA, "unmatched string; rc=%i\n", rc); in of_unittest_property_string()
725 unittest(rc == -EINVAL, "missing property; rc=%i\n", rc); in of_unittest_property_string()
727 unittest(rc == -ENODATA, "empty property; rc=%i\n", rc); in of_unittest_property_string()
729 unittest(rc == -EILSEQ, "unterminated string; rc=%i\n", rc); in of_unittest_property_string()
733 unittest(rc == 1, "Incorrect string count; rc=%i\n", rc); in of_unittest_property_string()
735 unittest(rc == 3, "Incorrect string count; rc=%i\n", rc); in of_unittest_property_string()
737 unittest(rc == -EILSEQ, "unterminated string; rc=%i\n", rc); in of_unittest_property_string()
739 unittest(rc == -EILSEQ, "unterminated string array; rc=%i\n", rc); in of_unittest_property_string()
743 …unittest(rc == 0 && !strcmp(strings[0], "foobar"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
746 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
748 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
750 …unittest(rc == 0 && !strcmp(strings[0], "second"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
752 …unittest(rc == 0 && !strcmp(strings[0], "third"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
755 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
758 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
760 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
763 …unittest(rc == -EILSEQ && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", … in of_unittest_property_string()
768 unittest(rc == 1, "Incorrect string count; rc=%i\n", rc); in of_unittest_property_string()
770 unittest(rc == 3, "Incorrect string count; rc=%i\n", rc); in of_unittest_property_string()
772 unittest(rc == -EILSEQ, "unterminated string; rc=%i\n", rc); in of_unittest_property_string()
775 unittest(rc == -EILSEQ, "unterminated string array; rc=%i\n", rc); in of_unittest_property_string()
779 unittest(rc == 2 && strings[2] == NULL, "of_property_read_string_array() failure; rc=%i\n", rc); in of_unittest_property_string()
782 …unittest(rc == 1 && strings[1] == NULL, "Overwrote end of string array; rc=%i, str='%s'\n", rc, st… in of_unittest_property_string()
797 unittest(new && propcmp(&p1, new), "empty property didn't copy correctly\n"); in of_unittest_property_copy()
801 unittest(new && propcmp(&p2, new), "non-empty property didn't copy correctly\n"); in of_unittest_property_copy()
823 unittest(n1, "testcase setup failure\n"); in of_unittest_changeset()
826 unittest(n2, "testcase setup failure\n"); in of_unittest_changeset()
829 unittest(n21, "testcase setup failure %p\n", n21); in of_unittest_changeset()
833 unittest(nremove, "testcase setup failure\n"); in of_unittest_changeset()
836 unittest(ppadd, "testcase setup failure\n"); in of_unittest_changeset()
839 unittest(ppname_n1, "testcase setup failure\n"); in of_unittest_changeset()
842 unittest(ppname_n2, "testcase setup failure\n"); in of_unittest_changeset()
845 unittest(ppname_n21, "testcase setup failure\n"); in of_unittest_changeset()
848 unittest(ppupdate, "testcase setup failure\n"); in of_unittest_changeset()
856 unittest(ppremove, "failed to find removal prop"); in of_unittest_changeset()
860 unittest(!of_changeset_attach_node(&chgset, n1), "fail attach n1\n"); in of_unittest_changeset()
861 unittest(!of_changeset_add_property(&chgset, n1, ppname_n1), "fail add prop name\n"); in of_unittest_changeset()
863 unittest(!of_changeset_attach_node(&chgset, n2), "fail attach n2\n"); in of_unittest_changeset()
864 unittest(!of_changeset_add_property(&chgset, n2, ppname_n2), "fail add prop name\n"); in of_unittest_changeset()
866 unittest(!of_changeset_detach_node(&chgset, nremove), "fail remove node\n"); in of_unittest_changeset()
867 unittest(!of_changeset_add_property(&chgset, n21, ppname_n21), "fail add prop name\n"); in of_unittest_changeset()
869 unittest(!of_changeset_attach_node(&chgset, n21), "fail attach n21\n"); in of_unittest_changeset()
871 unittest(!of_changeset_add_property(&chgset, parent, ppadd), "fail add prop prop-add\n"); in of_unittest_changeset()
872 unittest(!of_changeset_update_property(&chgset, parent, ppupdate), "fail update prop\n"); in of_unittest_changeset()
873 unittest(!of_changeset_remove_property(&chgset, parent, ppremove), "fail remove prop\n"); in of_unittest_changeset()
875 unittest(n22, "fail create n22\n"); in of_unittest_changeset()
876 unittest(!of_changeset_add_prop_string(&chgset, n22, "prop-str", "abcd"), in of_unittest_changeset()
878 unittest(!of_changeset_add_prop_string_array(&chgset, n22, "prop-str-array", in of_unittest_changeset()
882 unittest(!of_changeset_add_prop_u32_array(&chgset, n22, "prop-u32-array", in of_unittest_changeset()
886 unittest(!of_changeset_apply(&chgset), "apply failed\n"); in of_unittest_changeset()
891 unittest((np = of_find_node_by_path("/testcase-data/changeset/n2/n21")), in of_unittest_changeset()
894 unittest((np = of_find_node_by_path("/testcase-data/changeset/n2/n22")), in of_unittest_changeset()
898 unittest(!of_changeset_revert(&chgset), "revert failed\n"); in of_unittest_changeset()
900 unittest(!of_find_node_by_path("/testcase-data/changeset/n2/n21"), in of_unittest_changeset()
903 unittest(of_property_present(parent, "prop-remove"), in of_unittest_changeset()
907 unittest(!ret, "failed to find updated prop after revert\n"); in of_unittest_changeset()
909 unittest(strcmp(propstr, "hello") == 0, "original value not in updated property after revert"); in of_unittest_changeset()
928 if (unittest(ret == 0, "failed to read %s\n", prop_name)) in changeset_check_string()
931 unittest(strcmp(str, expected_str) == 0, in changeset_check_string()
947 if (unittest(cnt >= 0, "failed to get %s count\n", prop_name)) in changeset_check_string_array()
950 if (unittest(cnt == count, in changeset_check_string_array()
957 if (unittest(ret == 0, "failed to read %s[%d]\n", prop_name, i)) in changeset_check_string_array()
960 unittest(strcmp(str, expected_array[i]) == 0, in changeset_check_string_array()
974 if (unittest(ret == 0, "failed to read %s\n", prop_name)) in changeset_check_u32()
977 unittest(val32 == expected_u32, in changeset_check_u32()
993 if (unittest(cnt >= 0, "failed to get %s count\n", prop_name)) in changeset_check_u32_array()
996 if (unittest(cnt == count, in changeset_check_u32_array()
1003 if (unittest(ret == 0, "failed to read %s[%d]\n", prop_name, i)) in changeset_check_u32_array()
1006 unittest(val32 == expected_array[i], in changeset_check_u32_array()
1015 unittest(of_property_read_bool(np, prop_name), in changeset_check_bool()
1037 if (unittest(np, "failed to create test-prop node\n")) in of_unittest_changeset_prop()
1041 unittest(ret == 0, "failed to add prop-string\n"); in of_unittest_changeset_prop()
1045 unittest(ret == 0, "failed to add prop-string-array\n"); in of_unittest_changeset_prop()
1048 unittest(ret == 0, "failed to add prop-u32\n"); in of_unittest_changeset_prop()
1052 unittest(ret == 0, "failed to add prop-u32-array\n"); in of_unittest_changeset_prop()
1055 unittest(ret == 0, "failed to add prop-bool\n"); in of_unittest_changeset_prop()
1060 if (unittest(ret == 0, "failed to apply changeset\n")) in of_unittest_changeset_prop()
1064 if (unittest(np, "failed to find test-prop node\n")) in of_unittest_changeset_prop()
1077 unittest(ret == 0, "failed to revert changeset\n"); in of_unittest_changeset_prop()
1100 unittest(cpu_addr == 0x4fffffff, in of_unittest_dma_get_max_cpu_address()
1121 unittest(!rc, "of_dma_get_range failed on node %pOF rc=%i\n", np, rc); in of_unittest_dma_ranges_one()
1130 unittest(0, "kzalloc() failed\n"); in of_unittest_dma_ranges_one()
1139 unittest(paddr == expect_paddr, in of_unittest_dma_ranges_one()
1142 unittest(dma_addr == expect_dma_addr, in of_unittest_dma_ranges_one()
1190 unittest(range.size == 0x10000000, in of_unittest_pci_dma_ranges()
1193 unittest(range.cpu_addr == 0x20000000, in of_unittest_pci_dma_ranges()
1196 unittest(range.pci_addr == 0x80000000, in of_unittest_pci_dma_ranges()
1200 unittest(range.size == 0x10000000, in of_unittest_pci_dma_ranges()
1203 unittest(range.cpu_addr == 0x40000000, in of_unittest_pci_dma_ranges()
1206 unittest(range.pci_addr == 0xc0000000, in of_unittest_pci_dma_ranges()
1236 unittest(!ret, "of_range_to_resource returned error (%d) node %pOF\n", in of_unittest_bus_ranges()
1238 unittest(resource_type(&res) == IORESOURCE_MEM, in of_unittest_bus_ranges()
1241 unittest(res.start == 0xd0000000, in of_unittest_bus_ranges()
1244 unittest(resource_size(&res) == 0x20000000, in of_unittest_bus_ranges()
1249 unittest(count == 2, in of_unittest_bus_ranges()
1257 unittest(range.flags == IORESOURCE_MEM, in of_unittest_bus_ranges()
1261 unittest(range.size == 0x50000000, in of_unittest_bus_ranges()
1264 unittest(range.cpu_addr == 0x70000000, in of_unittest_bus_ranges()
1267 unittest(range.bus_addr == 0x70000000, in of_unittest_bus_ranges()
1271 unittest(range.size == 0x20000000, in of_unittest_bus_ranges()
1274 unittest(range.cpu_addr == 0xd0000000, in of_unittest_bus_ranges()
1277 unittest(range.bus_addr == 0x00000000, in of_unittest_bus_ranges()
1310 unittest(range.flags == 0xf00baa, in of_unittest_bus_3cell_ranges()
1313 unittest(range.size == 0x100000, in of_unittest_bus_3cell_ranges()
1316 unittest(range.cpu_addr == 0xa0000000, in of_unittest_bus_3cell_ranges()
1319 unittest(range.bus_addr == 0x0, in of_unittest_bus_3cell_ranges()
1323 unittest(range.flags == 0xf00bee, in of_unittest_bus_3cell_ranges()
1326 unittest(range.size == 0x200000, in of_unittest_bus_3cell_ranges()
1329 unittest(range.cpu_addr == 0xb0000000, in of_unittest_bus_3cell_ranges()
1332 unittest(range.bus_addr == 0x100000000, in of_unittest_bus_3cell_ranges()
1355 unittest(!ret, "of_property_read_reg(%pOF) returned error %d\n", in of_unittest_reg()
1357 unittest(addr == 0x1000, "of_property_read_reg(%pOF) untranslated address (%llx) incorrect\n", in of_unittest_reg()
1391 unittest(!ret, "of_address_to_resource(%pOF, %d) returned error %d\n", in of_unittest_check_addr()
1393 unittest(resource_type(&res) == resource_type(&expected->res) && in of_unittest_check_addr()
1464 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_interrupts()
1510 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_interrupts()
1590 unittest(passed, "index %i - data error on node %pOF rc=%i\n", in of_unittest_parse_interrupts_extended()
1640 unittest(0, "missing testcase node %s\n", in of_unittest_match_node()
1647 unittest(0, "%s didn't match anything\n", in of_unittest_match_node()
1653 unittest(0, "%s got wrong match. expected %s, got %s\n", in of_unittest_match_node()
1658 unittest(1, "passed"); in of_unittest_match_node()
1682 unittest(pdev, "device 1 creation failed\n"); in of_unittest_platform_populate()
1686 unittest(irq == -EPROBE_DEFER, in of_unittest_platform_populate()
1692 unittest(pdev, "device 2 creation failed\n"); in of_unittest_platform_populate()
1702 unittest(irq < 0 && irq != -EPROBE_DEFER, in of_unittest_platform_populate()
1707 unittest(np, "No testcase data in device tree\n"); in of_unittest_platform_populate()
1713 unittest(!rc, "testbus registration failed; rc=%i\n", rc); in of_unittest_platform_populate()
1733 unittest(pdev, in of_unittest_platform_populate()
1743 unittest(!of_find_device_by_node(grandchild), in of_unittest_platform_populate()
2046 unittest(!ret, in unittest_gpio_probe()
2117 unittest(overlay_data_apply("overlay_gpio_01", NULL), in of_unittest_overlay_gpio()
2120 unittest(overlay_data_apply("overlay_gpio_02a", NULL), in of_unittest_overlay_gpio()
2123 unittest(overlay_data_apply("overlay_gpio_02b", NULL), in of_unittest_overlay_gpio()
2127 if (unittest(ret == 0, "could not register unittest gpio driver\n")) in of_unittest_overlay_gpio()
2130 unittest(probe_pass_count + 2 == unittest_gpio_probe_pass_count, in of_unittest_overlay_gpio()
2133 unittest(chip_request_count + 2 == unittest_gpio_chip_request_count, in of_unittest_overlay_gpio()
2156 unittest(overlay_data_apply("overlay_gpio_03", NULL), in of_unittest_overlay_gpio()
2159 unittest(probe_pass_count + 1 == unittest_gpio_probe_pass_count, in of_unittest_overlay_gpio()
2162 unittest(chip_request_count + 1 == unittest_gpio_chip_request_count, in of_unittest_overlay_gpio()
2180 unittest(overlay_data_apply("overlay_gpio_04a", NULL), in of_unittest_overlay_gpio()
2183 unittest(probe_pass_count + 1 == unittest_gpio_probe_pass_count, in of_unittest_overlay_gpio()
2197 unittest(overlay_data_apply("overlay_gpio_04b", NULL), in of_unittest_overlay_gpio()
2200 unittest(chip_request_count + 1 == unittest_gpio_chip_request_count, in of_unittest_overlay_gpio()
2375 unittest(0, "could not apply overlay \"%s\"\n", overlay_name); in of_unittest_apply_overlay()
2391 unittest(0, "%s with device @\"%s\" %s\n", in __of_unittest_apply_overlay_check()
2408 unittest(0, "%s with device @\"%s\" %s\n", in __of_unittest_apply_overlay_check()
2447 unittest(0, "%s failed to be destroyed @\"%s\"\n", in of_unittest_apply_revert_overlay_check()
2456 unittest(0, "%s with device @\"%s\" %s\n", in of_unittest_apply_revert_overlay_check()
2483 unittest(1, "overlay test %d passed\n", 0); in of_unittest_overlay_0()
2503 unittest(1, "overlay test %d passed\n", 1); in of_unittest_overlay_1()
2523 unittest(1, "overlay test %d passed\n", 2); in of_unittest_overlay_2()
2543 unittest(1, "overlay test %d passed\n", 3); in of_unittest_overlay_3()
2553 unittest(1, "overlay test %d passed\n", 4); in of_unittest_overlay_4()
2573 unittest(1, "overlay test %d passed\n", 5); in of_unittest_overlay_5()
2590 unittest(0, "%s with device @\"%s\" %s\n", in of_unittest_overlay_6()
2609 unittest(0, "could not apply overlay \"%s\"\n", overlay_name); in of_unittest_overlay_6()
2626 unittest(0, "could not apply overlay \"%s\"\n", overlay_name); in of_unittest_overlay_6()
2640 unittest(0, "overlay @\"%s\" failed @\"%s\" %s\n", in of_unittest_overlay_6()
2652 unittest(0, "%s failed destroy @\"%s\"\n", in of_unittest_overlay_6()
2665 unittest(0, "%s with device @\"%s\" %s\n", in of_unittest_overlay_6()
2674 unittest(1, "overlay test %d passed\n", 6); in of_unittest_overlay_6()
2695 unittest(0, "could not apply overlay \"%s\"\n", overlay_name); in of_unittest_overlay_8()
2718 unittest(0, "could not apply overlay \"%s\"\n", overlay_name); in of_unittest_overlay_8()
2747 unittest(0, "%s was destroyed @\"%s\"\n", in of_unittest_overlay_8()
2758 unittest(0, "%s not destroyed @\"%s\"\n", in of_unittest_overlay_8()
2767 unittest(1, "overlay test %d passed\n", 8); in of_unittest_overlay_8()
2779 if (unittest(ret == 0, in of_unittest_overlay_10()
2785 if (unittest(child_path, "overlay test %d failed; kasprintf\n", 10)) in of_unittest_overlay_10()
2791 unittest(ret, "overlay test %d failed; no child device\n", 10); in of_unittest_overlay_10()
2803 unittest(ret == 0, "overlay test %d failed; overlay apply\n", 11); in of_unittest_overlay_11()
3022 if (unittest(ret == 0, in of_unittest_overlay_i2c_init()
3028 if (unittest(ret == 0, in of_unittest_overlay_i2c_init()
3042 if (unittest(ret == 0, in of_unittest_overlay_i2c_init()
3075 unittest(1, "overlay test %d passed\n", 12); in of_unittest_overlay_i2c_12()
3095 unittest(1, "overlay test %d passed\n", 13); in of_unittest_overlay_i2c_13()
3119 unittest(1, "overlay test %d passed\n", 15); in of_unittest_overlay_i2c_15()
3207 unittest(!ret, in of_unittest_overlay_notify()
3228 unittest(overlay_data_apply("overlay_16", &ovcs_id), in of_unittest_overlay_notify()
3233 unittest(ovcs_id, "ovcs_id not created for overlay_16\n"); in of_unittest_overlay_notify()
3239 unittest(overlay_data_apply("overlay_17", &ovcs_id), in of_unittest_overlay_notify()
3244 unittest(ovcs_id, "ovcs_id not created for overlay_17\n"); in of_unittest_overlay_notify()
3248 unittest(overlay_data_apply("overlay_18", &ovcs_id), in of_unittest_overlay_notify()
3251 unittest(ovcs_id, "ovcs_id not created for overlay_18\n"); in of_unittest_overlay_notify()
3262 unittest(1, "overlay_18 of_overlay_remove() injected error for OF_OVERLAY_PRE_REMOVE\n"); in of_unittest_overlay_notify()
3264 …unittest(0, "overlay_18 of_overlay_remove() injected error for OF_OVERLAY_PRE_REMOVE not returned\… in of_unittest_overlay_notify()
3267 unittest(1, "ovcs_id not created for overlay_18\n"); in of_unittest_overlay_notify()
3270 unittest(ovcs_id, "ovcs_id removed for overlay_18\n"); in of_unittest_overlay_notify()
3274 unittest(overlay_data_apply("overlay_19", &ovcs_id), in of_unittest_overlay_notify()
3277 unittest(ovcs_id, "ovcs_id not created for overlay_19\n"); in of_unittest_overlay_notify()
3284 unittest(1, "overlay_19 of_overlay_remove() injected error for OF_OVERLAY_POST_REMOVE\n"); in of_unittest_overlay_notify()
3286 …unittest(0, "overlay_19 of_overlay_remove() injected error for OF_OVERLAY_POST_REMOVE not returned… in of_unittest_overlay_notify()
3288 unittest(1, "ovcs_id removed for overlay_19\n"); in of_unittest_overlay_notify()
3291 unittest(!ovcs_id, "changeset ovcs_id = %d not removed for overlay_19\n", in of_unittest_overlay_notify()
3296 unittest(overlay_data_apply("overlay_20", &ovcs_id), in of_unittest_overlay_notify()
3302 unittest(1, "overlay_20 failed to be destroyed, ret = %d\n", in of_unittest_overlay_notify()
3305 unittest(1, "ovcs_id not created for overlay_20\n"); in of_unittest_overlay_notify()
3308 unittest(!of_overlay_notifier_unregister(&of_nb), in of_unittest_overlay_notify()
3318 unittest(0, "could not register unittest driver\n"); in of_unittest_overlay()
3324 unittest(0, "could not find bus_path \"%s\"\n", bus_path); in of_unittest_overlay()
3329 unittest(0, "could not populate bus @ \"%s\"\n", bus_path); in of_unittest_overlay()
3334 unittest(0, "could not find unittest0 @ \"%s\"\n", in of_unittest_overlay()
3340 unittest(0, "unittest1 @ \"%s\" should not exist\n", in of_unittest_overlay()
3345 unittest(1, "basic infrastructure of overlays passed"); in of_unittest_overlay()
3362 if (unittest(of_unittest_overlay_i2c_init() == 0, "i2c init failed\n")) in of_unittest_overlay()
3410 unittest(np, "find refcount_path \"%s\"\n", refcount_path); in of_unittest_lifecycle()
3417 unittest(0, "guardrail to avoid infinite loop\n"); in of_unittest_lifecycle()
3435 unittest(1, "/testcase-data/refcount-node is one"); in of_unittest_lifecycle()
3455 unittest(1, "/testcase-data/refcount-node is zero"); in of_unittest_lifecycle()
3472 unittest(1, "/testcase-data/refcount-node is zero, second time"); in of_unittest_lifecycle()
3498 unittest(np, "find refcount_parent_path \"%s\"\n", refcount_parent_path); in of_unittest_lifecycle()
3499 unittest(np, "ERROR: devicetree live tree left in a 'bad state' if test fail\n"); in of_unittest_lifecycle()
3521 unittest(0, "One or more lifecycle tests skipped\n"); in of_unittest_lifecycle()
3788 unittest(0, "overlay_base_root not initialized\n"); in of_unittest_overlay_high_level()
3838 unittest(0, "illegal node name in overlay_base %pOFn", in of_unittest_overlay_high_level()
3877 unittest(0, "__of_prop_dup() of '%s' from overlay_base node __symbols__", in of_unittest_overlay_high_level()
3886 unittest(0, "duplicate property '%s' in overlay_base node __symbols__", in of_unittest_overlay_high_level()
3891 unittest(0, "unable to add property '%s' in overlay_base node __symbols__ to sysfs", in of_unittest_overlay_high_level()
3953 unittest(ret, "Adding overlay 'overlay' failed\n"); in of_unittest_overlay_high_level()
3966 unittest(overlay_data_apply("overlay_bad_add_dup_node", NULL), in of_unittest_overlay_high_level()
3991 unittest(overlay_data_apply("overlay_bad_add_dup_prop", NULL), in of_unittest_overlay_high_level()
4007 unittest(overlay_data_apply("overlay_bad_phandle", NULL), in of_unittest_overlay_high_level()
4017 unittest(overlay_data_apply("overlay_bad_symbol", NULL), in of_unittest_overlay_high_level()
4032 unittest(overlay_data_apply("overlay_bad_unresolved", NULL), in of_unittest_overlay_high_level()
4125 unittest(res->start == exp_addr, "Incorrect translated address %llx, expected %llx\n", in unittest_pci_probe()
4155 unittest(pnp, "Failed creating PCI dt node\n"); in of_unittest_pci_node_verify()
4162 unittest(np, "Failed to get unittest-pci node under PCI node\n"); in of_unittest_pci_node_verify()
4169 unittest(reg, "Failed to get reg property\n"); in of_unittest_pci_node_verify()
4175 unittest(!np, "Child device tree node is not removed\n"); in of_unittest_pci_node_verify()
4177 unittest(!child_dev, "Child device is not removed\n"); in of_unittest_pci_node_verify()
4197 unittest(!rc, "Failed to register pci test driver; rc = %d\n", rc); in of_unittest_pci_node()
4202 if (unittest(!rc, "Failed to register unittest pci driver\n")) { in of_unittest_pci_node()
4214 unittest(of_unittest_pci_dev_num, in of_unittest_pci_node()
4216 unittest(of_unittest_pci_dev_num == of_unittest_pci_child_num, in of_unittest_pci_node()