Changeset 15986 for trunk/psModules/test/config/tap_pmConfigCommand.c
- Timestamp:
- Jan 2, 2008, 10:49:57 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/test/config/tap_pmConfigCommand.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/config/tap_pmConfigCommand.c
r14881 r15986 5 5 * This code will test the pmConfigCommand() routine. 6 6 * 7 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 200 7-09-18 18:58:52$7 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2008-01-02 20:49:09 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 37 37 str[0] = "ARGS:"; 38 38 str[1] = "-site"; 39 str[2] = " data/SampleIPPConfig";39 str[2] = "../dataFiles/SampleIPPConfig"; 40 40 psS32 argc = 3; 41 41 pmConfig *config = pmConfigRead(&argc, str, "RecipeName"); 42 if (!config) { 43 str[2] = "dataFiles/SampleIPPConfig"; 44 config = pmConfigRead(&argc, str, "RecipeName"); 45 } 42 46 ok(config != NULL, "pmConfigRead() successful"); 43 47 ok(!pmConfigDatabaseCommand(NULL, config), "pmConfigDatabaseCommand() returned NULL with NULL command input param"); … … 65 69 str[0] = "ARGS:"; 66 70 str[1] = "-site"; 67 str[2] = " data/SampleIPPConfig";71 str[2] = "../dataFiles/SampleIPPConfig"; 68 72 psS32 argc = 3; 69 73 pmConfig *config = pmConfigRead(&argc, str, "RecipeName"); 74 if (!config) { 75 str[2] = "dataFiles/SampleIPPConfig"; 76 config = pmConfigRead(&argc, str, "RecipeName"); 77 } 70 78 ok(config != NULL, "pmConfigRead() successful"); 71 79 char *testCmd = "command"; … … 82 90 str[0] = "ARGS:"; 83 91 str[1] = "-site"; 84 str[2] = " data/SampleIPPConfig";92 str[2] = "../dataFiles/SampleIPPConfig"; 85 93 psS32 argc = 3; 86 94 pmConfig *config = pmConfigRead(&argc, str, "RecipeName"); 95 if (!config) { 96 str[2] = "dataFiles/SampleIPPConfig"; 97 config = pmConfigRead(&argc, str, "RecipeName"); 98 } 87 99 ok(config != NULL, "pmConfigRead() successful"); 88 100 psString testCmd = psStringCopy("my command");
Note:
See TracChangeset
for help on using the changeset viewer.
