IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 10, 2013, 5:53:31 PM (13 years ago)
Author:
eugene
Message:

add test-case options -dup-images (allow duplicate image IDs) and -image-id-override (force a specific image ID)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/UpdateImageIDs.c

    r35263 r35579  
    3535  }
    3636
     37  // TEST IMAGE_ID OVER-RIDE:
     38  if (IMAGE_ID_OVERRIDE) {
     39    imageID = IMAGE_ID_OVERRIDE;
     40  }
     41
    3742  // XXX should the first image ID be 1, not 0?
    3843  if (imageID == 0) imageID = 1;
     
    5459  // set and update the imageID sequence
    5560  // the file holding the index is created above if this is an empty db
    56   CheckDuplicateImageIDs (images, Nimages);
     61  if (NO_DUPLICATE_IMAGES) {
     62    CheckDuplicateImageIDs (images, Nimages);
     63  }
    5764
    5865  imageID += Nimages;
Note: See TracChangeset for help on using the changeset viewer.