2
** Copyright (C) 2001-2005 Erik de Castro Lopo <erikd@mega-nerd.com>
4
** This program is free software ; you can redistribute it and/or modify
5
** it under the terms of the GNU General Public License as published by
6
** the Free Software Foundation ; either version 2 of the License, or
7
** (at your option) any later version.
9
** This program is distributed in the hope that it will be useful,
10
** but WITHOUT ANY WARRANTY ; without even the implied warranty of
11
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
** GNU General Public License for more details.
14
** You should have received a copy of the GNU General Public License
15
** along with this program ; if not, write to the Free Software
16
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32
#if (HAVE_DECL_S_IRGRP == 0)
33
#include <sf_unistd.h>
36
#if (defined (WIN32) || defined (_WIN32))
45
#define BUFFER_LEN (1<<10)
46
#define LOG_BUFFER_SIZE 1024
48
static void update_header_test (const char *filename, int typemajor) ;
50
static void update_seek_short_test (const char *filename, int filetype) ;
51
static void update_seek_int_test (const char *filename, int filetype) ;
52
static void update_seek_float_test (const char *filename, int filetype) ;
53
static void update_seek_double_test (const char *filename, int filetype) ;
56
static void extra_header_test (const char *filename, int filetype) ;
58
/* Force the start of this buffer to be double aligned. Sparc-solaris will
61
static int data_out [BUFFER_LEN] ;
62
static int data_in [BUFFER_LEN] ;
65
main (int argc, char *argv [])
70
{ printf ("Usage : %s <test>\n", argv [0]) ;
71
printf (" Where <test> is one of the following:\n") ;
72
printf (" wav - test WAV file peak chunk\n") ;
73
printf (" aiff - test AIFF file PEAK chunk\n") ;
74
printf (" all - perform all tests\n") ;
78
do_all=!strcmp (argv [1], "all") ;
80
if (do_all || ! strcmp (argv [1], "wav"))
81
{ update_header_test ("header.wav", SF_FORMAT_WAV) ;
82
update_seek_short_test ("header_short.wav", SF_FORMAT_WAV) ;
83
update_seek_int_test ("header_int.wav", SF_FORMAT_WAV) ;
84
update_seek_float_test ("header_float.wav", SF_FORMAT_WAV) ;
85
update_seek_double_test ("header_double.wav", SF_FORMAT_WAV) ;
86
extra_header_test ("extra.wav", SF_FORMAT_WAV) ;
90
if (do_all || ! strcmp (argv [1], "aiff"))
91
{ update_header_test ("header.aiff", SF_FORMAT_AIFF) ;
92
update_seek_short_test ("header_short.aiff", SF_FORMAT_AIFF) ;
93
update_seek_int_test ("header_int.aiff", SF_FORMAT_AIFF) ;
94
update_seek_float_test ("header_float.aiff", SF_FORMAT_AIFF) ;
95
update_seek_double_test ("header_double.aiff", SF_FORMAT_AIFF) ;
96
extra_header_test ("extra.aiff", SF_FORMAT_AIFF) ;
100
if (do_all || ! strcmp (argv [1], "au"))
101
{ update_header_test ("header.au", SF_FORMAT_AU) ;
102
update_seek_short_test ("header_short.au", SF_FORMAT_AU) ;
103
update_seek_int_test ("header_int.au", SF_FORMAT_AU) ;
104
update_seek_float_test ("header_float.au", SF_FORMAT_AU) ;
105
update_seek_double_test ("header_double.au", SF_FORMAT_AU) ;
109
if (do_all || ! strcmp (argv [1], "caf"))
110
{ update_header_test ("header.caf", SF_FORMAT_CAF) ;
111
update_seek_short_test ("header_short.caf", SF_FORMAT_CAF) ;
112
update_seek_int_test ("header_int.caf", SF_FORMAT_CAF) ;
113
update_seek_float_test ("header_float.caf", SF_FORMAT_CAF) ;
114
update_seek_double_test ("header_double.caf", SF_FORMAT_CAF) ;
115
/* extra_header_test ("extra.caf", SF_FORMAT_CAF) ; */
119
if (do_all || ! strcmp (argv [1], "nist"))
120
{ update_header_test ("header.nist", SF_FORMAT_NIST) ;
121
update_seek_short_test ("header_short.nist", SF_FORMAT_NIST) ;
122
update_seek_int_test ("header_int.nist", SF_FORMAT_NIST) ;
126
if (do_all || ! strcmp (argv [1], "paf"))
127
{ update_header_test ("header.paf", SF_FORMAT_PAF) ;
128
update_seek_short_test ("header_short.paf", SF_FORMAT_PAF) ;
132
if (do_all || ! strcmp (argv [1], "ircam"))
133
{ update_header_test ("header.ircam", SF_FORMAT_IRCAM) ;
134
update_seek_short_test ("header_short.ircam", SF_FORMAT_IRCAM) ;
138
if (do_all || ! strcmp (argv [1], "w64"))
139
{ update_header_test ("header.w64", SF_FORMAT_W64) ;
140
update_seek_short_test ("header_short.w64", SF_FORMAT_W64) ;
141
update_seek_int_test ("header_int.w64", SF_FORMAT_W64) ;
142
update_seek_float_test ("header_float.w64", SF_FORMAT_W64) ;
143
update_seek_double_test ("header_double.w64", SF_FORMAT_W64) ;
147
if (do_all || ! strcmp (argv [1], "mat4"))
148
{ update_header_test ("header.mat4", SF_FORMAT_MAT4) ;
149
update_seek_short_test ("header_short.mat4", SF_FORMAT_MAT4) ;
150
update_seek_int_test ("header_int.mat4", SF_FORMAT_MAT4) ;
151
update_seek_float_test ("header_float.mat4", SF_FORMAT_MAT4) ;
152
update_seek_double_test ("header_double.mat4", SF_FORMAT_MAT4) ;
156
if (do_all || ! strcmp (argv [1], "mat5"))
157
{ update_header_test ("header.mat5", SF_FORMAT_MAT5) ;
158
update_seek_short_test ("header_short.mat5", SF_FORMAT_MAT5) ;
159
update_seek_int_test ("header_int.mat5", SF_FORMAT_MAT5) ;
160
update_seek_float_test ("header_float.mat5", SF_FORMAT_MAT5) ;
161
update_seek_double_test ("header_double.mat5", SF_FORMAT_MAT5) ;
165
if (do_all || ! strcmp (argv [1], "pvf"))
166
{ update_header_test ("header.pvf", SF_FORMAT_PVF) ;
167
update_seek_short_test ("header_short.pvf", SF_FORMAT_PVF) ;
171
if (do_all || ! strcmp (argv [1], "avr"))
172
{ update_header_test ("header.avr", SF_FORMAT_AVR) ;
173
update_seek_short_test ("header_short.avr", SF_FORMAT_AVR) ;
177
if (do_all || ! strcmp (argv [1], "htk"))
178
{ update_header_test ("header.htk", SF_FORMAT_HTK) ;
179
update_seek_short_test ("header_short.htk", SF_FORMAT_HTK) ;
183
if (do_all || ! strcmp (argv [1], "svx"))
184
{ update_header_test ("header.svx", SF_FORMAT_SVX) ;
185
update_seek_short_test ("header_short.svx", SF_FORMAT_SVX) ;
189
if (do_all || ! strcmp (argv [1], "voc"))
190
{ update_header_test ("header.voc", SF_FORMAT_VOC) ;
191
/*-update_seek_short_test ("header_short.voc", SF_FORMAT_VOC) ;-*/
195
if (do_all || ! strcmp (argv [1], "sds"))
196
{ update_header_test ("header.sds", SF_FORMAT_SDS) ;
197
/*-update_seek_short_test ("header_short.sds", SF_FORMAT_SDS) ;-*/
202
{ printf ("Mono : ************************************\n") ;
203
printf ("Mono : * No '%s' test defined.\n", argv [1]) ;
204
printf ("Mono : ************************************\n") ;
212
/*============================================================================================
213
** Here are the test functions.
217
update_header_sub (const char *filename, int typemajor, int write_mode)
218
{ SNDFILE *outfile, *infile ;
222
sfinfo.samplerate = 44100 ;
223
sfinfo.format = (typemajor | SF_FORMAT_PCM_16) ;
224
sfinfo.channels = 1 ;
227
frames = BUFFER_LEN / sfinfo.channels ;
229
outfile = test_open_file_or_die (filename, write_mode, &sfinfo, SF_TRUE, __LINE__) ;
231
for (k = 0 ; k < BUFFER_LEN ; k++)
232
data_out [k] = k + 1 ;
233
test_write_int_or_die (outfile, 0, data_out, BUFFER_LEN, __LINE__) ;
235
if (typemajor != SF_FORMAT_HTK)
236
{ /* The HTK header is not correct when the file is first written. */
237
infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
241
sf_command (outfile, SFC_UPDATE_HEADER_NOW, NULL, 0) ;
244
** Open file and check log buffer for an error. If header update failed
245
** the the log buffer will contain errors.
247
infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
248
check_log_buffer_or_die (infile, __LINE__) ;
250
if (sfinfo.frames < BUFFER_LEN || sfinfo.frames > BUFFER_LEN + 50)
251
{ printf ("\n\nLine %d : Incorrect sample count (%ld should be %d)\n", __LINE__, SF_COUNT_TO_LONG (sfinfo.frames), BUFFER_LEN) ;
252
dump_log_buffer (infile) ;
256
test_read_int_or_die (infile, 0, data_in, BUFFER_LEN, __LINE__) ;
257
for (k = 0 ; k < BUFFER_LEN ; k++)
258
if (data_out [k] != k + 1)
259
printf ("Error : line %d\n", __LINE__) ;
263
/* Set auto update on. */
264
sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) ;
266
/* Write more data_out. */
267
for (k = 0 ; k < BUFFER_LEN ; k++)
268
data_out [k] = k + 2 ;
269
test_write_int_or_die (outfile, 0, data_out, BUFFER_LEN, __LINE__) ;
271
/* Open file again and make sure no errors in log buffer. */
272
infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
273
check_log_buffer_or_die (infile, __LINE__) ;
275
if (sfinfo.frames < 2 * BUFFER_LEN || sfinfo.frames > 2 * BUFFER_LEN + 50)
276
{ printf ("\n\nLine %d : Incorrect sample count (%ld should be %d)\n", __LINE__, SF_COUNT_TO_LONG (sfinfo.frames), 2 * BUFFER_LEN) ;
277
dump_log_buffer (infile) ;
286
} /* update_header_sub */
289
update_header_test (const char *filename, int typemajor)
291
print_test_name ("update_header_test", filename) ;
293
#if 0 /*-(OS_IS_WIN32 == 0)-*/
294
if (typemajor == SF_FORMAT_PAF)
296
** I think this is a bug in the win32 file I/O code in src/file_io.c.
297
** I didn't write that code and I don't have the time to debug and
298
** fix it. Patches will gladly be accepted. Erik
300
puts ("doesn't work on win32") ;
305
update_header_sub (filename, typemajor, SFM_WRITE) ;
306
update_header_sub (filename, typemajor, SFM_RDWR) ;
310
} /* update_header_test */
312
/*==============================================================================
316
update_seek_short_test (const char *filename, int filetype)
317
{ SNDFILE *outfile, *infile ;
323
print_test_name ("update_seek_short_test", filename) ;
325
memset (buffer, 0, sizeof (buffer)) ;
327
/* Create sound outfile with no data. */
328
sfinfo.format = filetype | SF_FORMAT_PCM_16 ;
329
sfinfo.samplerate = 48000 ;
330
sfinfo.channels = 2 ;
332
if (sf_format_check (&sfinfo) == SF_FALSE)
333
sfinfo.channels = 1 ;
335
outfile = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
338
/* Open again for read/write. */
339
outfile = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
342
** In auto header update mode, seeking to the end of the file with
343
** SEEK_SET will fail from the 2nd seek on. seeking to 0, SEEK_END
344
** will seek to 0 anyway
346
if (sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) == 0)
347
{ printf ("\n\nError : sf_command (SFC_SET_UPDATE_HEADER_AUTO) return error : %s\n\n", sf_strerror (outfile)) ;
351
/* Now write some frames. */
352
frames = ARRAY_LEN (buffer) / sfinfo.channels ;
354
for (k = 0 ; k < 6 ; k++)
355
{ test_seek_or_die (outfile, k * frames, SEEK_SET, k * frames, sfinfo.channels, __LINE__) ;
356
test_seek_or_die (outfile, 0, SEEK_END, k * frames, sfinfo.channels, __LINE__) ;
358
/* Open file again and make sure no errors in log buffer. */
359
infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
360
check_log_buffer_or_die (infile, __LINE__) ;
363
if (sfinfo.frames != k * frames)
364
{ printf ("\n\nLine %d : Incorrect sample count (%ld should be %ld)\n", __LINE__, SF_COUNT_TO_LONG (sfinfo.frames), SF_COUNT_TO_LONG (k + frames)) ;
365
dump_log_buffer (infile) ;
370
test_write_short_or_die (outfile, k, buffer, sfinfo.channels * frames, __LINE__) ;
372
test_writef_short_or_die (outfile, k, buffer, frames, __LINE__) ;
380
} /* update_seek_short_test */
382
update_seek_int_test (const char *filename, int filetype)
383
{ SNDFILE *outfile, *infile ;
389
print_test_name ("update_seek_int_test", filename) ;
391
memset (buffer, 0, sizeof (buffer)) ;
393
/* Create sound outfile with no data. */
394
sfinfo.format = filetype | SF_FORMAT_PCM_32 ;
395
sfinfo.samplerate = 48000 ;
396
sfinfo.channels = 2 ;
398
if (sf_format_check (&sfinfo) == SF_FALSE)
399
sfinfo.channels = 1 ;
401
outfile = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
404
/* Open again for read/write. */
405
outfile = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
408
** In auto header update mode, seeking to the end of the file with
409
** SEEK_SET will fail from the 2nd seek on. seeking to 0, SEEK_END
410
** will seek to 0 anyway
412
if (sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) == 0)
413
{ printf ("\n\nError : sf_command (SFC_SET_UPDATE_HEADER_AUTO) return error : %s\n\n", sf_strerror (outfile)) ;
417
/* Now write some frames. */
418
frames = ARRAY_LEN (buffer) / sfinfo.channels ;
420
for (k = 0 ; k < 6 ; k++)
421
{ test_seek_or_die (outfile, k * frames, SEEK_SET, k * frames, sfinfo.channels, __LINE__) ;
422
test_seek_or_die (outfile, 0, SEEK_END, k * frames, sfinfo.channels, __LINE__) ;
424
/* Open file again and make sure no errors in log buffer. */
425
infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
426
check_log_buffer_or_die (infile, __LINE__) ;
429
if (sfinfo.frames != k * frames)
430
{ printf ("\n\nLine %d : Incorrect sample count (%ld should be %ld)\n", __LINE__, SF_COUNT_TO_LONG (sfinfo.frames), SF_COUNT_TO_LONG (k + frames)) ;
431
dump_log_buffer (infile) ;
436
test_write_int_or_die (outfile, k, buffer, sfinfo.channels * frames, __LINE__) ;
438
test_writef_int_or_die (outfile, k, buffer, frames, __LINE__) ;
446
} /* update_seek_int_test */
448
update_seek_float_test (const char *filename, int filetype)
449
{ SNDFILE *outfile, *infile ;
455
print_test_name ("update_seek_float_test", filename) ;
457
memset (buffer, 0, sizeof (buffer)) ;
459
/* Create sound outfile with no data. */
460
sfinfo.format = filetype | SF_FORMAT_FLOAT ;
461
sfinfo.samplerate = 48000 ;
462
sfinfo.channels = 2 ;
464
if (sf_format_check (&sfinfo) == SF_FALSE)
465
sfinfo.channels = 1 ;
467
outfile = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
470
/* Open again for read/write. */
471
outfile = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
474
** In auto header update mode, seeking to the end of the file with
475
** SEEK_SET will fail from the 2nd seek on. seeking to 0, SEEK_END
476
** will seek to 0 anyway
478
if (sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) == 0)
479
{ printf ("\n\nError : sf_command (SFC_SET_UPDATE_HEADER_AUTO) return error : %s\n\n", sf_strerror (outfile)) ;
483
/* Now write some frames. */
484
frames = ARRAY_LEN (buffer) / sfinfo.channels ;
486
for (k = 0 ; k < 6 ; k++)
487
{ test_seek_or_die (outfile, k * frames, SEEK_SET, k * frames, sfinfo.channels, __LINE__) ;
488
test_seek_or_die (outfile, 0, SEEK_END, k * frames, sfinfo.channels, __LINE__) ;
490
/* Open file again and make sure no errors in log buffer. */
491
infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
492
check_log_buffer_or_die (infile, __LINE__) ;
495
if (sfinfo.frames != k * frames)
496
{ printf ("\n\nLine %d : Incorrect sample count (%ld should be %ld)\n", __LINE__, SF_COUNT_TO_LONG (sfinfo.frames), SF_COUNT_TO_LONG (k + frames)) ;
497
dump_log_buffer (infile) ;
502
test_write_float_or_die (outfile, k, buffer, sfinfo.channels * frames, __LINE__) ;
504
test_writef_float_or_die (outfile, k, buffer, frames, __LINE__) ;
512
} /* update_seek_float_test */
514
update_seek_double_test (const char *filename, int filetype)
515
{ SNDFILE *outfile, *infile ;
521
print_test_name ("update_seek_double_test", filename) ;
523
memset (buffer, 0, sizeof (buffer)) ;
525
/* Create sound outfile with no data. */
526
sfinfo.format = filetype | SF_FORMAT_DOUBLE ;
527
sfinfo.samplerate = 48000 ;
528
sfinfo.channels = 2 ;
530
if (sf_format_check (&sfinfo) == SF_FALSE)
531
sfinfo.channels = 1 ;
533
outfile = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
536
/* Open again for read/write. */
537
outfile = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
540
** In auto header update mode, seeking to the end of the file with
541
** SEEK_SET will fail from the 2nd seek on. seeking to 0, SEEK_END
542
** will seek to 0 anyway
544
if (sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) == 0)
545
{ printf ("\n\nError : sf_command (SFC_SET_UPDATE_HEADER_AUTO) return error : %s\n\n", sf_strerror (outfile)) ;
549
/* Now write some frames. */
550
frames = ARRAY_LEN (buffer) / sfinfo.channels ;
552
for (k = 0 ; k < 6 ; k++)
553
{ test_seek_or_die (outfile, k * frames, SEEK_SET, k * frames, sfinfo.channels, __LINE__) ;
554
test_seek_or_die (outfile, 0, SEEK_END, k * frames, sfinfo.channels, __LINE__) ;
556
/* Open file again and make sure no errors in log buffer. */
557
infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
558
check_log_buffer_or_die (infile, __LINE__) ;
561
if (sfinfo.frames != k * frames)
562
{ printf ("\n\nLine %d : Incorrect sample count (%ld should be %ld)\n", __LINE__, SF_COUNT_TO_LONG (sfinfo.frames), SF_COUNT_TO_LONG (k + frames)) ;
563
dump_log_buffer (infile) ;
568
test_write_double_or_die (outfile, k, buffer, sfinfo.channels * frames, __LINE__) ;
570
test_writef_double_or_die (outfile, k, buffer, frames, __LINE__) ;
578
} /* update_seek_double_test */
586
extra_header_test (const char *filename, int filetype)
587
{ SNDFILE *outfile, *infile ;
593
print_test_name ("extra_header_test", filename) ;
595
sfinfo.samplerate = 44100 ;
596
sfinfo.format = (filetype | SF_FORMAT_PCM_16) ;
597
sfinfo.channels = 1 ;
599
memset (buffer, 0xA0, sizeof (buffer)) ;
601
/* Now write some frames. */
602
frames = ARRAY_LEN (buffer) / sfinfo.channels ;
604
/* Test the file with extra header data. */
605
outfile = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, 409) ;
606
sf_set_string (outfile, SF_STR_TITLE, filename) ;
607
test_writef_short_or_die (outfile, k, buffer, frames, 411) ;
608
sf_set_string (outfile, SF_STR_COPYRIGHT, "(c) 1980 Erik") ;
613
** Erik de Castro Lopo <erikd@mega-nerd.com> May 23 2004.
615
** This file has extra string data in the header and therefore cannot
616
** currently be opened in SFM_RDWR mode. This is fixable, but its in
617
** a part of the code I don't want to fiddle with until the Ogg/Vorbis
618
** integration is done.
621
if ((infile = sf_open (filename, SFM_RDWR, &sfinfo)) != NULL)
622
{ printf ("\n\nError : should not be able to open this file in SFM_RDWR.\n\n") ;
631
hexdump_file (filename, 0, 100000) ;
633
/* Open again for read/write. */
634
outfile = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, 438) ;
637
** In auto header update mode, seeking to the end of the file with
638
** SEEK_SET will fail from the 2nd seek on. seeking to 0, SEEK_END
639
** will seek to 0 anyway
641
if (sf_command (outfile, SFC_SET_UPDATE_HEADER_AUTO, NULL, SF_TRUE) == 0)
642
{ printf ("\n\nError : sf_command (SFC_SET_UPDATE_HEADER_AUTO) return error : %s\n\n", sf_strerror (outfile)) ;
646
/* Now write some frames. */
647
frames = ARRAY_LEN (buffer) / sfinfo.channels ;
649
for (k = 1 ; k < 6 ; k++)
651
printf ("\n*** pass %d\n", k) ;
652
memset (buffer, 0xA0 + k, sizeof (buffer)) ;
655
test_seek_or_die (outfile, k * frames, SEEK_SET, k * frames, sfinfo.channels, 459) ;
656
test_seek_or_die (outfile, 0, SEEK_END, k * frames, sfinfo.channels, 460) ;
658
/* Open file again and make sure no errors in log buffer. */
660
{ infile = test_open_file_or_die (filename, SFM_READ, &sfinfo, 464) ;
661
check_log_buffer_or_die (infile, 465) ;
665
if (sfinfo.frames != k * frames)
666
{ printf ("\n\nLine %d : Incorrect sample count (%ld should be %ld)\n", 470, SF_COUNT_TO_LONG (sfinfo.frames), SF_COUNT_TO_LONG (k + frames)) ;
667
dump_log_buffer (infile) ;
672
test_write_short_or_die (outfile, k, buffer, sfinfo.channels * frames, 476) ;
674
test_writef_short_or_die (outfile, k, buffer, frames, 478) ;
675
hexdump_file (filename, 0, 100000) ;
684
} /* extra_header_test */