|
Packit |
dd8086 |
/* -*- C -*-
|
|
Packit |
dd8086 |
Copyright (C) 2009, 2011 Rocky Bernstein <rocky@gnu.org>
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
This program is free software: you can redistribute it and/or modify
|
|
Packit |
dd8086 |
it under the terms of the GNU General Public License as published by
|
|
Packit |
dd8086 |
the Free Software Foundation, either version 3 of the License, or
|
|
Packit |
dd8086 |
(at your option) any later version.
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
This program is distributed in the hope that it will be useful,
|
|
Packit |
dd8086 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
dd8086 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
dd8086 |
GNU General Public License for more details.
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
You should have received a copy of the GNU General Public License
|
|
Packit |
dd8086 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
dd8086 |
*/
|
|
Packit |
dd8086 |
/* Unit test for lib/driver/util.c */
|
|
Packit |
dd8086 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
dd8086 |
#include "config.h"
|
|
Packit |
dd8086 |
#define __CDIO_CONFIG_H__ 1
|
|
Packit |
dd8086 |
#endif
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
#ifdef HAVE_STDIO_H
|
|
Packit |
dd8086 |
#include <stdio.h>
|
|
Packit |
dd8086 |
#endif
|
|
Packit |
dd8086 |
#ifdef HAVE_STDLIB_H
|
|
Packit |
dd8086 |
#include <stdlib.h>
|
|
Packit |
dd8086 |
#endif
|
|
Packit |
dd8086 |
#ifdef HAVE_STRING_H
|
|
Packit |
dd8086 |
#include <string.h>
|
|
Packit |
dd8086 |
#endif
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
#include <cdio/version.h>
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
int
|
|
Packit |
dd8086 |
main(int argc, const char *argv[])
|
|
Packit |
dd8086 |
{
|
|
Packit |
dd8086 |
if (0 != strncmp(cdio_version_string, CDIO_VERSION,
|
|
Packit |
dd8086 |
strlen(CDIO_VERSION))) {
|
|
Packit |
dd8086 |
fprintf(stderr, "CDIO VERSION string mismatch %s vs %s\n",
|
|
Packit |
dd8086 |
cdio_version_string, CDIO_VERSION);
|
|
Packit |
dd8086 |
exit(1);
|
|
Packit |
dd8086 |
}
|
|
Packit |
dd8086 |
if (libcdio_version_num != LIBCDIO_VERSION_NUM) {
|
|
Packit |
dd8086 |
fprintf(stderr, "LIBCDIO_VERSION_NUM value mismatch %d vs %d\n",
|
|
Packit |
dd8086 |
libcdio_version_num, LIBCDIO_VERSION_NUM);
|
|
Packit |
dd8086 |
exit(2);
|
|
Packit |
dd8086 |
}
|
|
Packit |
dd8086 |
exit(0);
|
|
Packit |
dd8086 |
}
|
|
Packit |
dd8086 |
|