summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_subtest.tap
blob: 3430e2eebc1c6394b3a7c04fa6997cb26f812ebe (plain)
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
TAP version 13
# tst_Subtest
ok 1 - initTestCase()
  ---
  extensions:
    messages:
    - severity: debug
      message: initTestCase initTestCase (null)
  ...
ok 2 - test1()
  ---
  extensions:
    messages:
    - severity: debug
      message: init test1 (null)
    - severity: debug
      message: test1 test1 (null)
    - severity: debug
      message: cleanup test1 (null)
  ...
ok 2 - test2() # Data prepared
  ---
  extensions:
    messages:
    - severity: debug
      message: test2_data test2 (null)
    - severity: debug
      message: test2_data end
  ...
ok 3 - test2(data0)
  ---
  extensions:
    messages:
    - severity: debug
      message: init test2 data0
    - severity: debug
      message: test2 test2 data0
    - severity: debug
      message: test2 end
    - severity: debug
      message: cleanup test2 data0
  ...
ok 4 - test2(data1)
  ---
  extensions:
    messages:
    - severity: debug
      message: init test2 data1
    - severity: debug
      message: test2 test2 data1
    - severity: debug
      message: test2 end
    - severity: debug
      message: cleanup test2 data1
  ...
ok 5 - test2(data2)
  ---
  extensions:
    messages:
    - severity: debug
      message: init test2 data2
    - severity: debug
      message: test2 test2 data2
    - severity: debug
      message: test2 end
    - severity: debug
      message: cleanup test2 data2
  ...
ok 5 - test3() # Data prepared
  ---
  extensions:
    messages:
    - severity: debug
      message: test3_data test3 (null)
    - severity: debug
      message: test3_data end
  ...
ok 6 - test3(data0)
  ---
  extensions:
    messages:
    - severity: debug
      message: init test3 data0
    - severity: debug
      message: test3 test3 data0
    - severity: debug
      message: test3 end
    - severity: debug
      message: cleanup test3 data0
  ...
not ok 7 - test3(data1)
  ---
  type: QCOMPARE
  message: Compared values are not the same
  wanted: "hello0" (QString("hello0"))
  found: "hello1" (str)
  expected: "hello0" (QString("hello0"))
  actual: "hello1" (str)
  at: tst_Subtest::test3() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  extensions:
    messages:
    - severity: debug
      message: init test3 data1
    - severity: debug
      message: test3 test3 data1
  ...
# debug: cleanup test3 data1
not ok 8 - test3(data2)
  ---
  type: QCOMPARE
  message: Compared values are not the same
  wanted: "hello0" (QString("hello0"))
  found: "hello2" (str)
  expected: "hello0" (QString("hello0"))
  actual: "hello2" (str)
  at: tst_Subtest::test3() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  extensions:
    messages:
    - severity: debug
      message: init test3 data2
    - severity: debug
      message: test3 test3 data2
  ...
# debug: cleanup test3 data2
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  extensions:
    messages:
    - severity: debug
      message: init multiFail (null)
  ...
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
not ok 9 - multiFail()
  ---
  # This failure message should be repeated ten times
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
not ok 9 - multiFail()
  ---
  # But this test should only contribute one to the failure count
  at: tst_Subtest::multiFail() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  ...
# debug: cleanup multiFail (null)
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
  ---
  at: tst_Subtest::multiSkip() (qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp:0)
  file: qtbase/tests/auto/testlib/selftests/subtest/tst_subtest.cpp
  line: 0
  extensions:
    messages:
    - severity: debug
      message: init multiSkip (null)
  ...
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
ok 10 - multiSkip() # SKIP This skip should be repeated ten times
ok 10 - multiSkip() # SKIP But this test should only contribute one to the skip count
# debug: cleanup multiSkip (null)
ok 11 - cleanupTestCase()
  ---
  extensions:
    messages:
    - severity: debug
      message: cleanupTestCase cleanupTestCase (null)
  ...
1..11
# tests 11
# pass 7
# fail 3