File size: 12,022 Bytes
6baed57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
[info] Using config /libxml2/mull.yml
[debug] Diagnostics: Debug Mode enabled. Debug-level messages will be printed.
[warning] Could not find dynamic library: libm.so.6
[warning] Could not find dynamic library: libc.so.6
[info] Warm up run (threads: 1)

       [################################] 1/1. Finished in 108ms
[info] Extracting coverage information (threads: 1)

       [################################] 1/1. Finished in 4ms
[info] Filter mutants (threads: 1)

       [################################] 1/1. Finished in 0ms
[info] Baseline run (threads: 1)

       [################################] 1/1. Finished in 103ms
[info] Running mutants (threads: 20)
[debug] /libxml2/HTMLtree.c:478:13 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:365:14 ExecutionResult: Passed

       [#-------------------------------] 2/64
[debug] /libxml2/HTMLtree.c:497:30 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:521:16 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:492:11 ExecutionResult: Failed

       [##------------------------------] 5/64
[debug] /libxml2/HTMLtree.c:526:10 ExecutionResult: Passed

       [###-----------------------------] 6/64
[debug] /libxml2/HTMLtree.c:839:5 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:790:20 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:1101:39 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:1085:39 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:1076:28 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:795:43 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:528:40 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:781:9 ExecutionResult: Passed

       [#######-------------------------] 14/64
[debug] /libxml2/HTMLtree.c:805:21 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:530:17 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:787:51 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:770:5 ExecutionResult: Passed

       [#########-----------------------] 18/64
[debug] /libxml2/HTMLtree.c:482:16 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:524:10 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:388:21 ExecutionResult: Passed

       [##########----------------------] 21/64
[debug] /libxml2/HTMLtree.c:516:14 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:1063:21 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:493:5 ExecutionResult: Failed

       [############--------------------] 24/64
[debug] /libxml2/HTMLtree.c:1094:30 ExecutionResult: Failed

       [############--------------------] 25/64
[debug] /libxml2/HTMLtree.c:526:12 ExecutionResult: Failed

       [#############-------------------] 26/64
[debug] /libxml2/HTMLtree.c:841:14 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:791:20 ExecutionResult: Passed

       [##############------------------] 28/64
[debug] /libxml2/HTMLtree.c:1077:28 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:816:9 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:1086:38 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:796:29 ExecutionResult: Passed

       [################----------------] 32/64
[debug] /libxml2/HTMLtree.c:787:15 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:788:34 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:777:24 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:764:5 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:528:40 ExecutionResult: Failed

       [##################--------------] 37/64
[debug] /libxml2/HTMLtree.c:490:21 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:524:12 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:1102:32 ExecutionResult: Failed

       [####################------------] 40/64
[debug] /libxml2/HTMLtree.c:435:13 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:516:31 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:497:13 ExecutionResult: Failed

       [#####################-----------] 43/64
[debug] /libxml2/HTMLtree.c:1098:17 ExecutionResult: Passed

       [######################----------] 44/64
[debug] /libxml2/HTMLtree.c:528:15 ExecutionResult: Failed

       [######################----------] 45/64
[debug] /libxml2/HTMLtree.c:792:21 ExecutionResult: Passed

       [#######################---------] 46/64
[debug] /libxml2/HTMLtree.c:841:31 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:837:9 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:1080:42 ExecutionResult: Passed

       [########################--------] 49/64
[debug] /libxml2/HTMLtree.c:1093:17 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:787:26 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:799:29 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:789:20 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:530:17 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:777:38 ExecutionResult: Passed

       [###########################-----] 55/64
[debug] /libxml2/HTMLtree.c:1065:27 ExecutionResult: Failed

       [############################----] 56/64
[debug] /libxml2/HTMLtree.c:492:9 ExecutionResult: Failed

       [############################----] 57/64
[debug] /libxml2/HTMLtree.c:475:13 ExecutionResult: Failed
[debug] /libxml2/HTMLtree.c:1111:25 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:519:5 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:1099:17 ExecutionResult: Passed
[debug] /libxml2/HTMLtree.c:497:15 ExecutionResult: Failed

       [###############################-] 62/64
[debug] /libxml2/HTMLtree.c:766:18 ExecutionResult: Failed

       [###############################-] 63/64
[debug] /libxml2/HTMLtree.c:1070:19 ExecutionResult: Passed

       [################################] 64/64. Finished in 714ms
[debug] Done running mutants
[info] Survived mutants (37/64):
/libxml2/HTMLtree.c:365:14: warning: Survived: Replaced == with != [cxx_eq_to_ne]
    if (name == NULL)
             ^
/libxml2/HTMLtree.c:388:21: warning: Survived: Replaced | with & [cxx_or_to_and]
    switch (name[0] | 0x20) {
                    ^
/libxml2/HTMLtree.c:435:13: warning: Survived: Replaced == with != [cxx_eq_to_ne]
    if (str == NULL)
            ^
/libxml2/HTMLtree.c:490:21: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
    outbuf->written = 0;
                    ^
/libxml2/HTMLtree.c:519:5: warning: Survived: Removed the call to the function [cxx_remove_void_call]
    xmlInitParser();
    ^
/libxml2/HTMLtree.c:526:10: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
    ret2 = xmlBufBackToBuffer(buffer, buf);
         ^
/libxml2/HTMLtree.c:530:17: warning: Survived: Replaced > with >= [cxx_gt_to_ge]
    return(ret1 > INT_MAX ? INT_MAX : ret1);
                ^
/libxml2/HTMLtree.c:764:5: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
    xmlOutputBufferWrite(buf, 1, " ");
    ^
/libxml2/HTMLtree.c:770:5: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
    xmlOutputBufferWriteString(buf, (const char *)cur->name);
    ^
/libxml2/HTMLtree.c:777:24: warning: Survived: Replaced != with == [cxx_ne_to_eq]
    if ((cur->children != NULL) && (!htmlIsBooleanAttr(cur->name))) {
                       ^
/libxml2/HTMLtree.c:777:38: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
    if ((cur->children != NULL) && (!htmlIsBooleanAttr(cur->name))) {
                                     ^
/libxml2/HTMLtree.c:781:9: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
        xmlOutputBufferWrite(buf, 2, "=\"");
        ^
/libxml2/HTMLtree.c:787:15: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
        isUri = (cur->ns == NULL) && (cur->parent != NULL) &&
              ^
/libxml2/HTMLtree.c:787:26: warning: Survived: Replaced == with != [cxx_eq_to_ne]
        isUri = (cur->ns == NULL) && (cur->parent != NULL) &&
                         ^
/libxml2/HTMLtree.c:787:51: warning: Survived: Replaced != with == [cxx_ne_to_eq]
        isUri = (cur->ns == NULL) && (cur->parent != NULL) &&
                                                  ^
/libxml2/HTMLtree.c:788:34: warning: Survived: Replaced == with != [cxx_eq_to_ne]
                (cur->parent->ns == NULL) &&
                                 ^
/libxml2/HTMLtree.c:789:20: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                ((!xmlStrcasecmp(cur->name, BAD_CAST "href")) ||
                   ^
/libxml2/HTMLtree.c:790:20: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                 (!xmlStrcasecmp(cur->name, BAD_CAST "action")) ||
                   ^
/libxml2/HTMLtree.c:791:20: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                 (!xmlStrcasecmp(cur->name, BAD_CAST "src")) ||
                   ^
/libxml2/HTMLtree.c:792:21: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                 ((!xmlStrcasecmp(cur->name, BAD_CAST "name")) &&
                    ^
/libxml2/HTMLtree.c:795:43: warning: Survived: Replaced != with == [cxx_ne_to_eq]
        for (child = cur->children; child != NULL; child = child->next) {
                                          ^
/libxml2/HTMLtree.c:796:29: warning: Survived: Replaced == with != [cxx_eq_to_ne]
            if (child->type == XML_TEXT_NODE) {
                            ^
/libxml2/HTMLtree.c:799:29: warning: Survived: Replaced == with != [cxx_eq_to_ne]
                if (content == NULL)
                            ^
/libxml2/HTMLtree.c:805:21: warning: Survived: Removed the call to the function [cxx_remove_void_call]
                    xmlSerializeText(buf, content, SIZE_MAX,
                    ^
/libxml2/HTMLtree.c:816:9: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
        xmlOutputBufferWrite(buf, 1, "\"");
        ^
/libxml2/HTMLtree.c:839:5: warning: Survived: Removed the call to the function [cxx_remove_void_call]
    xmlInitParser();
    ^
/libxml2/HTMLtree.c:1070:19: warning: Survived: Replaced 'a = b' with 'a = 42' [cxx_assign_const]
            isRaw = 0;
                  ^
/libxml2/HTMLtree.c:1076:28: warning: Survived: Replaced == with != [cxx_eq_to_ne]
            if ((cur->type == XML_HTML_DOCUMENT_NODE) ||
                           ^
/libxml2/HTMLtree.c:1077:28: warning: Survived: Replaced == with != [cxx_eq_to_ne]
                (cur->type == XML_DOCUMENT_NODE)) {
                           ^
/libxml2/HTMLtree.c:1080:42: warning: Survived: Replaced == with != [cxx_eq_to_ne]
                if ((format) && (cur->ns == NULL))
                                         ^
/libxml2/HTMLtree.c:1085:39: warning: Survived: Replaced != with == [cxx_ne_to_eq]
                if ((format) && (info != NULL) && (!info->isinline) &&
                                      ^
/libxml2/HTMLtree.c:1086:38: warning: Survived: Replaced != with == [cxx_ne_to_eq]
                    (cur->last->type != HTML_TEXT_NODE) &&
                                     ^
/libxml2/HTMLtree.c:1093:17: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                xmlOutputBufferWrite(buf, 2, "</");
                ^
/libxml2/HTMLtree.c:1098:17: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                xmlOutputBufferWriteString(buf, (const char *)cur->name);
                ^
/libxml2/HTMLtree.c:1099:17: warning: Survived: Replaced call to a function with 42 [cxx_replace_scalar_call]
                xmlOutputBufferWrite(buf, 1, ">");
                ^
/libxml2/HTMLtree.c:1101:39: warning: Survived: Replaced != with == [cxx_ne_to_eq]
                if ((format) && (info != NULL) && (!info->isinline) &&
                                      ^
/libxml2/HTMLtree.c:1111:25: warning: Survived: Replaced == with != [cxx_eq_to_ne]
                if (cur == metaHead)
                        ^
[info] Mutation score: 42%
[info] Total execution time: 965ms
[info] Surviving mutants: 37