IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12193


Ignore:
Timestamp:
Mar 2, 2007, 3:09:24 PM (19 years ago)
Author:
gusciora
Message:

Corrected location of the pslib.config file in the test file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tap_psEarthOrientation_motion.c

    r11689 r12193  
    8989    }
    9090    //Return NULL for failed eoc init - missing file
    91     //    printf("\n filename = '%s' \n", p_psGetConfigFileName());
     91    //printf("\n filename = '%s' \n", p_psGetConfigFileName());
     92    //XXX: Use the PS_CONFIG_FILE_DEFAULT macro, or PS_CONFIG_FILE environment variable
     93    //to define where the real pslib config is.
    9294    {
    9395        testTime->sec = 1049160600;
    9496        testTime->nsec = 0;
    9597        testTime->leapsecond = false;
    96         skip_start(rename("../../etc/pslib.config", "../../etc/pslib_config.bak"),
     98        skip_start(rename("../../etc/pslib/pslib.config", "../../etc/pslib/pslib_config.bak"),
    9799                   1, "Skipping 1 tests because file rename failed!");
    98100        ep = psEOC_PrecessionModel(testTime);
    99101        ok( ep == NULL,
    100102            "psEOC_PrecessionModel:          return NULL for failed eoc init.");
    101         rename("../../etc/pslib_config.bak", "../../etc/pslib.config");
    102         skip_end();
    103     }
     103        rename("../../etc/pslib/pslib_config.bak", "../../etc/pslib/pslib.config");
     104        skip_end();
     105    }
     106
    104107    //Return valid EarthPole for valid time input
    105108    {
     
    174177    }
    175178    //Return NULL for failed eoc init - missing file
     179    //XXX: Use the PS_CONFIG_FILE_DEFAULT macro, or PS_CONFIG_FILE environment variable
     180    //to define where the real pslib config is.
    176181    {
    177182        p_psEOCFinalize();
    178         skip_start(rename("../../etc/pslib.config", "../../etc/pslib_config.bak"),
     183        skip_start(rename("../../etc/pslib/pslib.config", "../../etc/pslib/pslib_config.bak"),
    179184                   1, "Skipping 1 tests because file rename failed!");
    180185        polarMotion = psEOC_GetPolarMotion(in, PS_IERS_B);
    181186        ok( polarMotion == NULL,
    182187            "psEOC_GetPolarMotion:          return NULL for failed eoc init.");
    183         rename("../../etc/pslib_config.bak", "../../etc/pslib.config");
     188        rename("../../etc/pslib/pslib_config.bak", "../../etc/pslib/pslib.config");
    184189        skip_end();
    185190    }
Note: See TracChangeset for help on using the changeset viewer.