Skip to content

Commit c548349

Browse files
committed
unit tests: adding END_TEST (required by Check < 0.13.0).
1 parent 7d7cfff commit c548349

13 files changed

+39
-2
lines changed

tests/test_adfDays2Date.c

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ START_TEST ( test_adfDays2Date )
5454
}
5555

5656
}
57+
END_TEST
5758

5859
Suite * adflib_suite ( void )
5960
{

tests/test_adfPos2DataBlock.c

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ START_TEST ( test_adfPos2DataBlock )
103103
}
104104

105105
}
106+
END_TEST
107+
106108

107109
Suite * adflib_suite ( void )
108110
{

tests/test_adf_file_util.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ START_TEST ( test_adfFilePos2datablockIndex )
4242
ck_assert_uint_eq ( test_data[i].datablock_index, dblock_i );
4343
}
4444
}
45+
END_TEST
4546

4647

4748
START_TEST ( test_adfFileSize2Datablocks )
@@ -83,6 +84,7 @@ START_TEST ( test_adfFileSize2Datablocks )
8384
test_data[i].blocksize );
8485
}
8586
}
87+
END_TEST
8688

8789

8890
START_TEST ( test_adfFileDatablocks2Extblocks )
@@ -116,7 +118,7 @@ START_TEST ( test_adfFileDatablocks2Extblocks )
116118
test_data[i].ndatablocks );
117119
}
118120
}
119-
121+
END_TEST
120122

121123

122124
START_TEST ( test_adfFileSize2Blocks )
@@ -169,6 +171,7 @@ START_TEST ( test_adfFileSize2Blocks )
169171
test_data[i].blocksize );
170172
}
171173
}
174+
END_TEST
172175

173176

174177
Suite * adflib_suite ( void )

tests/test_file_append.c

+3
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ START_TEST ( test_file_append_ofs )
185185
test_file_append ( &test_data );
186186
teardown ( &test_data );
187187
}
188+
END_TEST
189+
188190

189191
START_TEST ( test_file_append_ffs )
190192
{
@@ -199,6 +201,7 @@ START_TEST ( test_file_append_ffs )
199201
test_file_append ( &test_data );
200202
teardown ( &test_data );
201203
}
204+
END_TEST
202205

203206

204207
Suite * adflib_suite ( void )

tests/test_file_create.c

+5
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ START_TEST ( test_file_create_empty_ofs_write )
152152
test_file_create ( &test_data );
153153
teardown ( &test_data );
154154
}
155+
END_TEST
156+
155157

156158
START_TEST ( test_file_create_empty_ffs_write )
157159
{
@@ -166,6 +168,7 @@ START_TEST ( test_file_create_empty_ffs_write )
166168
test_file_create ( &test_data );
167169
teardown ( &test_data );
168170
}
171+
END_TEST
169172

170173
/*
171174
START_TEST ( test_file_create_empty_ofs_append )
@@ -181,6 +184,7 @@ START_TEST ( test_file_create_empty_ofs_append )
181184
test_file_create_with_append ( &test_data );
182185
teardown ( &test_data );
183186
}
187+
END_TEST
184188
185189
START_TEST ( test_file_create_empty_ffs_append)
186190
{
@@ -195,6 +199,7 @@ START_TEST ( test_file_create_empty_ffs_append)
195199
test_file_create_with_append ( &test_data );
196200
teardown ( &test_data );
197201
}
202+
END_TEST
198203
*/
199204

200205
Suite * adflib_suite ( void )

tests/test_file_overwrite.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ START_TEST ( test_file_write_ofs )
244244
test_file_write ( &test_data );
245245
teardown ( &test_data );
246246
}
247+
END_TEST
247248

248249
START_TEST ( test_file_write_ffs )
249250
{
@@ -258,7 +259,7 @@ START_TEST ( test_file_write_ffs )
258259
test_file_write ( &test_data );
259260
teardown ( &test_data );
260261
}
261-
262+
END_TEST
262263

263264
Suite * adflib_suite ( void )
264265
{

tests/test_file_overwrite2.c

+2
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ START_TEST ( test_file_overwrite_ofs )
318318
teardown ( &test_data );
319319
}
320320
}
321+
END_TEST
321322

322323
START_TEST ( test_file_overwrite_ffs )
323324
{
@@ -335,6 +336,7 @@ START_TEST ( test_file_overwrite_ffs )
335336
teardown ( &test_data );
336337
}
337338
}
339+
END_TEST
338340

339341
Suite * adflib_suite ( void )
340342
{

tests/test_file_seek.c

+4
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ static const unsigned buflen[] = {
162162
};
163163
static const unsigned buflensize = sizeof ( buflen ) / sizeof (unsigned);
164164

165+
165166
START_TEST ( test_file_seek_eof_ofs )
166167
{
167168
test_data_t test_data = {
@@ -178,6 +179,8 @@ START_TEST ( test_file_seek_eof_ofs )
178179
teardown ( &test_data );
179180
}
180181
}
182+
END_TEST
183+
181184

182185
START_TEST ( test_file_seek_eof_ffs )
183186
{
@@ -195,6 +198,7 @@ START_TEST ( test_file_seek_eof_ffs )
195198
teardown ( &test_data );
196199
}
197200
}
201+
END_TEST
198202

199203

200204
Suite * adflib_suite ( void )

tests/test_file_seek_after_write.c

+4
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ static const unsigned chunklen[] = {
222222
};
223223
static const unsigned chunklensize = sizeof ( chunklen ) / sizeof (unsigned);
224224

225+
225226
START_TEST ( test_file_seek_after_write_ofs )
226227
{
227228
test_data_t test_data = {
@@ -243,6 +244,8 @@ START_TEST ( test_file_seek_after_write_ofs )
243244
}
244245
}
245246
}
247+
END_TEST
248+
246249

247250
START_TEST ( test_file_seek_after_write_ffs )
248251
{
@@ -265,6 +268,7 @@ START_TEST ( test_file_seek_after_write_ffs )
265268
}
266269
}
267270
}
271+
END_TEST
268272

269273

270274
Suite * adflib_suite ( void )

tests/test_file_truncate.c

+3
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ START_TEST ( test_file_truncate_ofs )
383383
}
384384
}
385385
}
386+
END_TEST
387+
386388

387389
START_TEST ( test_file_truncate_ffs )
388390
{
@@ -405,6 +407,7 @@ START_TEST ( test_file_truncate_ffs )
405407
}
406408
}
407409
}
410+
END_TEST
408411

409412

410413
Suite * adflib_suite ( void )

tests/test_file_truncate2.c

+3
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ START_TEST ( test_file_truncate2_ofs )
260260
}
261261
}
262262
}
263+
END_TEST
264+
263265

264266
START_TEST ( test_file_truncate2_ffs )
265267
{
@@ -282,6 +284,7 @@ START_TEST ( test_file_truncate2_ffs )
282284
}
283285
}
284286
}
287+
END_TEST
285288

286289

287290
Suite * adflib_suite ( void )

tests/test_file_write.c

+3
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ START_TEST ( test_file_write_ofs )
247247
teardown ( &test_data );
248248
}
249249
}
250+
END_TEST
251+
250252

251253
START_TEST ( test_file_write_ffs )
252254
{
@@ -264,6 +266,7 @@ START_TEST ( test_file_write_ffs )
264266
teardown ( &test_data );
265267
}
266268
}
269+
END_TEST
267270

268271

269272
Suite * adflib_suite ( void )

tests/test_file_write_chunks.c

+3
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ START_TEST ( test_file_write_ofs )
297297
}
298298
}
299299
}
300+
END_TEST
301+
300302

301303
START_TEST ( test_file_write_ffs )
302304
{
@@ -319,6 +321,7 @@ START_TEST ( test_file_write_ffs )
319321
}
320322
}
321323
}
324+
END_TEST
322325

323326

324327
Suite * adflib_suite ( void )

0 commit comments

Comments
 (0)