example/* change failures so the record as skipped tests when running 'make check'.

This commit is contained in:
rocky
2009-12-26 17:25:05 +01:00
parent cb35e2877c
commit f180cae22d
9 changed files with 17 additions and 29 deletions

View File

@@ -84,7 +84,7 @@ main(int argc, const char *argv[])
if (NULL == p_cdio) { if (NULL == p_cdio) {
printf("Couldn't find CD\n"); printf("Couldn't find CD\n");
return 1; return 77;
} else { } else {
print_disc_info(p_cdio, i_tracks, i_first_track); print_disc_info(p_cdio, i_tracks, i_first_track);
} }

View File

@@ -1,7 +1,5 @@
/* /*
$Id: mmc1.c,v 1.7 2008/03/24 15:30:56 karl Exp $ Copyright (C) 2004, 2005, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
Copyright (C) 2004, 2005, 2008 Rocky Bernstein <rocky@gnu.org>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@@ -49,7 +47,7 @@ main(int argc, const char *argv[])
if (!p_cdio) { if (!p_cdio) {
printf("Couldn't find CD\n"); printf("Couldn't find CD\n");
return 1; return 77;
} else { } else {
int i_status; /* Result of MMC command */ int i_status; /* Result of MMC command */
char buf[36] = { 0, }; /* Place to hold returned data */ char buf[36] = { 0, }; /* Place to hold returned data */

View File

@@ -1,7 +1,5 @@
/* /*
$Id: mmc2.c,v 1.8 2008/03/24 15:30:56 karl Exp $ Copyright (C) 2004, 2005, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
Copyright (C) 2004, 2005, 2008 Rocky Bernstein <rocky@gnu.org>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@@ -44,7 +42,7 @@ main(int argc, const char *argv[])
if (NULL == p_cdio) { if (NULL == p_cdio) {
printf("Couldn't find CD\n"); printf("Couldn't find CD\n");
return 1; return 77;
} else { } else {
int i_status; /* Result of MMC command */ int i_status; /* Result of MMC command */
uint8_t buf[500] = { 0, }; /* Place to hold returned data */ uint8_t buf[500] = { 0, }; /* Place to hold returned data */

View File

@@ -1,7 +1,5 @@
/* /*
$Id: mmc2a.c,v 1.5 2008/03/24 15:30:56 karl Exp $ Copyright (C) 2006, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
Copyright (C) 2006, 2008 Rocky Bernstein <rocky@gnu.org>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@@ -209,7 +207,7 @@ main(int argc, const char *argv[])
if (!p_cdio) { if (!p_cdio) {
printf("Couldn't find CD\n"); printf("Couldn't find CD\n");
return 1; return 77;
} else { } else {
uint8_t buf[22] = { 0, }; /* Place to hold returned data */ uint8_t buf[22] = { 0, }; /* Place to hold returned data */
char *psz_cd = cdio_get_default_device(p_cdio); char *psz_cd = cdio_get_default_device(p_cdio);

View File

@@ -1,7 +1,5 @@
/* /*
$Id: mmc3.c,v 1.2 2008/03/24 15:30:56 karl Exp $ Copyright (C) 2006, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
Copyright (C) 2006, 2008 Rocky Bernstein <rocky@gnu.org>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@@ -51,14 +49,14 @@ main(int argc, const char *argv[])
psz_drive = cdio_get_default_device_driver(&driver_id); psz_drive = cdio_get_default_device_driver(&driver_id);
if (!psz_drive) { if (!psz_drive) {
printf("Can't find a CD-ROM\n"); printf("Can't find a CD-ROM\n");
exit(1); exit(77);
} }
} }
p_cdio = cdio_open (psz_drive, driver_id); p_cdio = cdio_open (psz_drive, driver_id);
if (!p_cdio) { if (!p_cdio) {
printf("Can't open %s\n", psz_drive); printf("Can't open %s\n", psz_drive);
exit(2); exit(77);
} }
ret = mmc_get_tray_status(p_cdio); ret = mmc_get_tray_status(p_cdio);

View File

@@ -1,6 +1,4 @@
/* /*
$Id: paranoia.c,v 1.9 2008/03/24 15:30:56 karl Exp $
Copyright (C) 2005, 2006, 2008, 2009 Rocky Bernstein <rocky@gnu.org> Copyright (C) 2005, 2006, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
@@ -93,7 +91,7 @@ main(int argc, const char *argv[])
d=cdda_identify(*ppsz_cd_drives, 1, NULL); d=cdda_identify(*ppsz_cd_drives, 1, NULL);
} else { } else {
printf("Unable find or access a CD-ROM drive with an audio CD in it.\n"); printf("Unable find or access a CD-ROM drive with an audio CD in it.\n");
exit(1); exit(77);
} }
/* Don't need a list of CD's with CD-DA's any more. */ /* Don't need a list of CD's with CD-DA's any more. */
@@ -101,7 +99,7 @@ main(int argc, const char *argv[])
if ( !d ) { if ( !d ) {
printf("Unable to identify audio CD disc.\n"); printf("Unable to identify audio CD disc.\n");
exit(1); exit(77);
} }
/* We'll set for verbose paranoia messages. */ /* We'll set for verbose paranoia messages. */
@@ -109,7 +107,7 @@ main(int argc, const char *argv[])
if ( 0 != cdda_open(d) ) { if ( 0 != cdda_open(d) ) {
printf("Unable to open disc.\n"); printf("Unable to open disc.\n");
exit(1); exit(77);
} }
/* Okay now set up to read up to the first 300 frames of the first /* Okay now set up to read up to the first 300 frames of the first

View File

@@ -47,7 +47,7 @@ main(int argc, const char *argv[])
d=cdio_cddap_identify_cdio(p_cdio, 1, NULL); d=cdio_cddap_identify_cdio(p_cdio, 1, NULL);
} else { } else {
printf("Unable find or access a CD-ROM drive with an audio CD in it.\n"); printf("Unable find or access a CD-ROM drive with an audio CD in it.\n");
exit(1); exit(77);
} }
/* Don't need a list of CD's with CD-DA's any more. */ /* Don't need a list of CD's with CD-DA's any more. */
@@ -55,7 +55,7 @@ main(int argc, const char *argv[])
if ( !d ) { if ( !d ) {
printf("Unable to identify audio CD disc.\n"); printf("Unable to identify audio CD disc.\n");
exit(1); exit(77);
} }
/* We'll set for verbose paranoia messages. */ /* We'll set for verbose paranoia messages. */
@@ -63,7 +63,7 @@ main(int argc, const char *argv[])
if ( 0 != cdio_cddap_open(d) ) { if ( 0 != cdio_cddap_open(d) ) {
printf("Unable to open disc.\n"); printf("Unable to open disc.\n");
exit(1); exit(77);
} }
/* In the paranoia example was a reading. Here we are going to do /* In the paranoia example was a reading. Here we are going to do

View File

@@ -145,7 +145,7 @@ main(int argc, const char *argv[])
if (NULL == p_cdio) { if (NULL == p_cdio) {
printf("Problem in trying to find a driver.\n\n"); printf("Problem in trying to find a driver.\n\n");
return 1; return 77;
} }
first_track_num = cdio_get_first_track_num(p_cdio); first_track_num = cdio_get_first_track_num(p_cdio);

View File

@@ -1,6 +1,4 @@
/* /*
$Id: testiso9660.c,v 1.23 2008/06/03 08:40:15 rocky Exp $
Copyright (C) 2003, 2006, 2007, 2008, 2009 Rocky Bernstein <rocky@gnu.org> Copyright (C) 2003, 2006, 2007, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify