Tool for checking AT-SPI tree integrity v1.0 96/91296/1
authorLukasz Wlazly <l.wlazly@partner.samsung.com>
Thu, 6 Oct 2016 14:20:46 +0000 (16:20 +0200)
committerLukasz Wlazly <l.wlazly@partner.samsung.com>
Thu, 6 Oct 2016 14:20:46 +0000 (16:20 +0200)
now, in case of fail, except nodes' indexes pointers are also printed

Change-Id: I8823fbad9243c1969ed81f35ef6968858846fed2

test/at_spi2_tool.c

index 252f3e5..a520412 100644 (file)
@@ -7,7 +7,7 @@
 
 #define ERROR_STATE -1
 #define SAFE_BUFFER_SIZE 255
-#define CHECK_OUTPUT_WIDTH 15
+#define CHECK_OUTPUT_WIDTH 38
 #define MINIMAL_MODULE_WIDTH 3
 #define ATTR_WIDTH 50
 #define NUMBER_WIDTH 6
@@ -315,7 +315,7 @@ static void _test_atspi_parent_child_relation(AtspiAccessible *obj, AtspiAccessi
                else
                        snprintf(parent_status, NUMBER_WIDTH, "%d", parent_index);
 
-               snprintf(output, CHECK_OUTPUT_WIDTH, "[FAIL<%d,%s>]", parent_candidate_index, parent_status);
+               snprintf(output, CHECK_OUTPUT_WIDTH, "[FAIL<%d,%s><%p,%p>]", parent_candidate_index, parent_status, parent_candidate, parent);
 
        } else {
                snprintf(output, CHECK_OUTPUT_WIDTH, "[OK]");