1
1

Update the unit test for the new put functions.

I'll send out a general note about this in the morning, but for now I'll just notify people through this note that the new simplified "put" commands have been debugged and work just fine. I'll add documentation to the gpr.h file later - only think to really be aware of is that the tokens array must be NULL terminated. Other than that, things work pretty much as you'd expect.

This commit was SVN r6700.
Этот коммит содержится в:
Ralph Castain 2005-08-02 02:31:53 +00:00
родитель 943a74e266
Коммит ed1022afd3

Просмотреть файл

@ -198,9 +198,11 @@ int main(int argc, char **argv)
types[i] = ORTE_INT16;
values[i].i16 = i * 1000;
}
tokens[4] = NULL;
keys[4] = NULL;
fprintf(stderr, "quick-put one value with multiple keyvals\n");
if (ORTE_SUCCESS != (rc = orte_gpr.put_N(ORTE_GPR_TOKENS_AND,
"test-put-segment23", tokens, 5,
"test-put-segment23", tokens, 4,
keys, types, values))) {
fprintf(test_out, "gpr_test: put 1 value/multiple keyval failed with error code %s\n",
ORTE_ERROR_NAME(rc));