IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2012, 9:25:56 PM (14 years ago)
Author:
eugene
Message:

fix success/failure status for single

Location:
branches/eam_branches/ipp-20120627/Ohana/src/dvomerge/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/Ohana/src/dvomerge/src/dvoverify_args.c

    r34120 r34128  
    4545    }
    4646
    47     int status = dvoverify_single (filename);
    48     exit (!status);
     47    int isGood = dvoverify_single (filename);
     48    if (!isGood) exit (1);
     49    exit (0);
    4950  }
    5051
  • branches/eam_branches/ipp-20120627/Ohana/src/dvomerge/src/dvoverify_utils.c

    r34120 r34128  
    2222int dvoverify_single (char *filename) {
    2323
    24   int isBad = FALSE;
     24  int isGood = TRUE;
    2525
    2626  if (!VerifyTableFile (filename)) {
    2727    fprintf (stderr, "bad average table %s\n", filename);
    28     isBad = TRUE;
     28    isGood = FALSE;
    2929  }
    3030
     
    3535  if (!VerifyTableFile (filename)) {
    3636    fprintf (stderr, "bad secfilt table %s\n", filename);
    37     isBad = TRUE;
     37    isGood = FALSE;
    3838  }
    3939
     
    4343  if (!VerifyTableFile (filename)) {
    4444    fprintf (stderr, "bad measure table %s\n", filename);
    45     isBad = TRUE;
    46   }
    47   return (isBad);
     45    isGood = FALSE;
     46  }
     47  return (isGood);
    4848}
    4949
Note: See TracChangeset for help on using the changeset viewer.