IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 2, 2008, 10:49:57 AM (18 years ago)
Author:
gusciora
Message:

Modified file reads to look for dataFiles and then ../dataFiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/config/tap_pmConfigMask.c

    r14882 r15986  
    55 * This code will test the pmConfigMask() routine.
    66 *
    7  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-09-18 18:58:56 $
     7 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-01-02 20:49:10 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2525    psTraceSetLevel(".", 0);
    2626    psTraceSetLevel("err", ERR_TRACE_LEVEL);
    27     plan_tests(9);
     27    plan_tests(7);
    2828
    2929
     
    3737        str[0] = "ARGS:";
    3838        str[1] = "-site";
    39         str[2] = "data/SampleIPPConfig";
     39        str[2] = "dataFiles/SampleIPPConfig";
    4040        psS32 argc = 3;
    4141        pmConfig *config = pmConfigRead(&argc, str, "RecipeName");
     42        if (!config) {
     43            str[2] = "../dataFiles/SampleIPPConfig";
     44            config = pmConfigRead(&argc, str, "RecipeName");
     45        }
    4246        ok(config != NULL, "pmConfigRead() successful");
    4347        ok(!pmConfigMask(NULL, config), "pmConfigMask() returned NULL with NULL masks input param");
     
    4953    // Test pmConfigMask() with NULL pmConfig input param
    5054    // XXX: This fails on current CVS code because there is no assert in pmConfigMask() for a null pmConfig param
    51     {
     55    if (0) {
    5256        psMemId id = psMemGetId();
    5357        char *masks = "Mask0 Mask1 Mask2";
     
    6165    {
    6266        psMemId id = psMemGetId();
    63         // See file TESTDIR/config/data/recipes_masks.config (
     67        // See file ../dataFiles/recipes_masks.config (
    6468        char *masks = "DETECTOR RANGE";
    6569        psMaskType correctMask = 0x02 | 0x04;
     
    6771        str[0] = "ARGS:";
    6872        str[1] = "-site";
    69         str[2] = "data/SampleIPPConfig";
     73        str[2] = "dataFiles/SampleIPPConfig";
    7074        psS32 argc = 3;
    7175        pmConfig *config = pmConfigRead(&argc, str, "RecipeName");
     76        if (!config) {
     77            str[2] = "../dataFiles/SampleIPPConfig";
     78            config = pmConfigRead(&argc, str, "RecipeName");
     79        }
    7280        ok(config != NULL, "pmConfigRead() successful");
     81        skip_start(config == NULL, 2, "Skipping tests because pmConfigRead() failed");
    7382        psMaskType mask = pmConfigMask(masks, config);
    74         ok(mask, "pmConfigMask non-zero with acceptable input params");
     83        ok(mask, "pmConfigMask returned non-zero with acceptable input params");
    7584        ok(mask == correctMask, "pmConfigMask() generated the correct output mask (%x).  Should be (%x)", mask, correctMask);
     85        skip_end();
    7686        psFree(config);
    7787        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
Note: See TracChangeset for help on using the changeset viewer.