libopenraw
test
extensions.cpp
1
/*
2
* Copyright (C) 2008 Hubert Figuiere
3
*
4
* This library is free software: you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public License
6
* as published by the Free Software Foundation, either version 3 of
7
* the License, or (at your option) any later version.
8
*
9
* This library 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 GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library. If not, see
16
* <http://www.gnu.org/licenses/>.
17
*/
18
19
#include <stdio.h>
20
#include <boost/test/minimal.hpp>
21
22
#include "libopenraw/rawfile.h"
23
24
#include <stdlib.h>
25
26
int
test_main(
int
,
char
*[] )
// note the name!
27
{
28
const
char
**exts = or_get_file_extensions();
29
if
(exts == NULL) {
30
fprintf(stderr,
"extension list is NULL\n"
);
31
return
1;
32
}
33
int
i = 0;
34
while
(*exts) {
35
i++;
36
exts++;
37
}
38
if
(i != 13) {
39
fprintf(stderr,
"extension list has the wrong number: %d\n"
, i);
40
return
1;
41
}
42
return
0;
43
}
44
45
/*
46
Local Variables:
47
mode:c++
48
c-file-style:"stroustrup"
49
c-file-offsets:((innamespace . 0))
50
indent-tabs-mode:nil
51
fill-column:80
52
End:
53
*/
Generated by
1.8.13