2005-03-14 23:57:21 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2005-03-14 23:57:21 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/** @file:
|
|
|
|
*
|
|
|
|
* The Open MPI general purpose registry - unit test
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* includes
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
2005-03-27 16:47:32 +04:00
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
#include "include/orte_constants.h"
|
|
|
|
#include "include/orte_schema.h"
|
|
|
|
|
|
|
|
#include "support.h"
|
2005-04-05 22:18:27 +04:00
|
|
|
#include "components.h"
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
#include "class/orte_pointer_array.h"
|
|
|
|
#include "dps/dps.h"
|
|
|
|
#include "runtime/runtime.h"
|
|
|
|
#include "util/proc_info.h"
|
2005-03-18 06:43:59 +03:00
|
|
|
#include "util/sys_info.h"
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
#include "mca/gpr/base/base.h"
|
|
|
|
#include "mca/gpr/replica/api_layer/gpr_replica_api.h"
|
|
|
|
#include "mca/gpr/replica/functional_layer/gpr_replica_fn.h"
|
|
|
|
#include "mca/gpr/replica/communications/gpr_replica_comm.h"
|
|
|
|
#include "mca/gpr/replica/transition_layer/gpr_replica_tl.h"
|
|
|
|
|
|
|
|
/* output files needed by the test */
|
|
|
|
static FILE *test_out=NULL;
|
|
|
|
|
|
|
|
static char *cmd_str="diff ./test_gpr_replica_out ./test_gpr_replica_out_std";
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2005-03-22 21:58:36 +03:00
|
|
|
int rc;
|
2005-03-14 23:57:21 +03:00
|
|
|
int32_t i, j, cnt;
|
2005-03-22 21:58:36 +03:00
|
|
|
char *names[15], *keys[5];
|
|
|
|
orte_gpr_keyval_t **kvals;
|
2005-03-14 23:57:21 +03:00
|
|
|
orte_gpr_value_t **values, *val;
|
2005-04-05 22:18:27 +04:00
|
|
|
test_component_handle_t handle;
|
|
|
|
mca_gpr_base_component_t *gpr_component = NULL;
|
|
|
|
orte_gpr_base_module_t *gpr_module = NULL;
|
|
|
|
bool allow, have;
|
|
|
|
int priority;
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
test_init("test_gpr_replica");
|
|
|
|
|
2005-03-22 17:41:45 +03:00
|
|
|
if (getenv("TEST_WRITE_TO_FILE") != NULL) {
|
|
|
|
test_out = fopen( "test_gpr_replica_out", "w+" );
|
|
|
|
} else {
|
|
|
|
test_out = stderr;
|
|
|
|
}
|
2005-03-14 23:57:21 +03:00
|
|
|
if( test_out == NULL ) {
|
|
|
|
test_failure("gpr_test couldn't open test file failed");
|
|
|
|
test_finalize();
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ENSURE THE REPLICA IS ISOLATED */
|
2005-04-05 02:55:26 +04:00
|
|
|
setenv("OMPI_MCA_gpr_replica_isolate", "1", 1);
|
2005-03-14 23:57:21 +03:00
|
|
|
|
2005-03-18 06:43:59 +03:00
|
|
|
/* Open up the output streams */
|
|
|
|
if (!ompi_output_init()) {
|
|
|
|
return OMPI_ERROR;
|
|
|
|
}
|
2005-04-05 22:18:27 +04:00
|
|
|
|
2005-03-18 06:43:59 +03:00
|
|
|
/*
|
2005-04-05 22:18:27 +04:00
|
|
|
* If threads are supported - assume that we are using threads -
|
|
|
|
* and reset otherwise.
|
2005-03-18 06:43:59 +03:00
|
|
|
*/
|
2005-03-22 07:25:01 +03:00
|
|
|
ompi_set_using_threads(OMPI_HAVE_THREAD_SUPPORT);
|
2005-04-05 22:18:27 +04:00
|
|
|
|
2005-03-18 06:43:59 +03:00
|
|
|
/* For malloc debugging */
|
|
|
|
ompi_malloc_init();
|
|
|
|
|
|
|
|
/* Ensure the system_info structure is instantiated and initialized */
|
|
|
|
if (ORTE_SUCCESS != (rc = orte_sys_info())) {
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Ensure the process info structure is instantiated and initialized */
|
|
|
|
if (ORTE_SUCCESS != (rc = orte_proc_info())) {
|
|
|
|
return rc;
|
|
|
|
}
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
orte_process_info.seed = true;
|
2005-03-22 21:58:36 +03:00
|
|
|
orte_process_info.my_name = (orte_process_name_t*)malloc(sizeof(orte_process_name_t));
|
|
|
|
orte_process_info.my_name->cellid = 0;
|
|
|
|
orte_process_info.my_name->jobid = 0;
|
|
|
|
orte_process_info.my_name->vpid = 0;
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
/* startup the MCA */
|
|
|
|
if (OMPI_SUCCESS == mca_base_open()) {
|
|
|
|
fprintf(test_out, "MCA started\n");
|
|
|
|
} else {
|
|
|
|
fprintf(test_out, "MCA could not start\n");
|
|
|
|
exit (1);
|
|
|
|
}
|
|
|
|
|
2005-04-05 22:18:27 +04:00
|
|
|
/* Open the gpr replica component and initialize a module */
|
|
|
|
if (OMPI_SUCCESS !=
|
|
|
|
test_component_open("gpr", "replica", &handle,
|
|
|
|
(mca_base_component_t**) &gpr_component) ||
|
|
|
|
NULL == gpr_component) {
|
|
|
|
fprintf(test_out, "Could not open replica\n");
|
|
|
|
exit(1);
|
2005-03-14 23:57:21 +03:00
|
|
|
}
|
2005-04-05 22:18:27 +04:00
|
|
|
gpr_module = gpr_component->gpr_init(&allow, &have, &priority);
|
|
|
|
if (NULL == gpr_module) {
|
|
|
|
fprintf(test_out, "replica component did not return a module\n");
|
|
|
|
exit(1);
|
2005-03-14 23:57:21 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
if (ORTE_SUCCESS == orte_dps_open()) {
|
|
|
|
fprintf(test_out, "DPS started\n");
|
|
|
|
} else {
|
|
|
|
fprintf(test_out, "DPS could not start\n");
|
|
|
|
exit (1);
|
|
|
|
}
|
|
|
|
|
|
|
|
fprintf(stderr, "put one value with single keyval\n");
|
|
|
|
val = OBJ_NEW(orte_gpr_value_t);
|
2005-03-18 06:43:59 +03:00
|
|
|
val->addr_mode = ORTE_GPR_NO_OVERWRITE | ORTE_GPR_TOKENS_XAND;
|
2005-03-14 23:57:21 +03:00
|
|
|
val->cnt = 1;
|
|
|
|
val->segment = strdup("test-put-segment");
|
|
|
|
val->num_tokens = 14;
|
|
|
|
val->tokens = (char**)malloc(val->num_tokens * sizeof(char*));
|
|
|
|
for (i=0; i < 14; i++) {
|
|
|
|
asprintf(&(val->tokens[i]), "dummy%d", i);
|
|
|
|
}
|
|
|
|
val->keyvals = (orte_gpr_keyval_t**)malloc(sizeof(orte_gpr_keyval_t*));
|
|
|
|
val->keyvals[0] = OBJ_NEW(orte_gpr_keyval_t);
|
|
|
|
(val->keyvals[0])->key = strdup("stupid-value-next-one");
|
|
|
|
(val->keyvals[0])->type = ORTE_INT32;
|
|
|
|
(val->keyvals[0])->value.i32 = 654321;
|
2005-04-05 22:18:27 +04:00
|
|
|
if (ORTE_SUCCESS != (rc = gpr_module->put(1, &val))) {
|
2005-03-14 23:57:21 +03:00
|
|
|
fprintf(test_out, "gpr_test: put of 1 value/1 keyval failed with error code %s\n",
|
|
|
|
ORTE_ERROR_NAME(rc));
|
|
|
|
test_failure("gpr_test: put of 1 value/1 keyval failed");
|
|
|
|
test_finalize();
|
|
|
|
return rc;
|
|
|
|
} else {
|
|
|
|
fprintf(test_out, "gpr_test: put of 1 value/1 keyval passed\n");
|
|
|
|
}
|
|
|
|
OBJ_RELEASE(val);
|
|
|
|
|
|
|
|
fprintf(stderr, "put one value with multiple keyvals\n");
|
|
|
|
val = OBJ_NEW(orte_gpr_value_t);
|
2005-03-18 06:43:59 +03:00
|
|
|
val->addr_mode = ORTE_GPR_NO_OVERWRITE | ORTE_GPR_TOKENS_XAND;
|
2005-03-14 23:57:21 +03:00
|
|
|
val->cnt = 20;
|
|
|
|
val->segment = strdup("test-put-segment");
|
|
|
|
val->num_tokens = 14;
|
|
|
|
val->tokens = (char**)malloc(val->num_tokens * sizeof(char*));
|
|
|
|
for (i=0; i < 14; i++) {
|
|
|
|
asprintf(&(val->tokens[i]), "dummy%d", i);
|
|
|
|
}
|
|
|
|
val->keyvals = (orte_gpr_keyval_t**)malloc(20*sizeof(orte_gpr_keyval_t*));
|
|
|
|
for (i=0; i<20; i++) {
|
|
|
|
val->keyvals[i] = OBJ_NEW(orte_gpr_keyval_t);
|
|
|
|
asprintf(&((val->keyvals[i])->key), "stupid-test-%d", i);
|
|
|
|
(val->keyvals[i])->type = ORTE_UINT32;
|
|
|
|
(val->keyvals[i])->value.ui32 = (uint32_t)i;
|
|
|
|
}
|
2005-04-05 22:18:27 +04:00
|
|
|
if (ORTE_SUCCESS != (rc = gpr_module->put(1, &val))) {
|
2005-03-14 23:57:21 +03:00
|
|
|
fprintf(test_out, "gpr_test: put 1 value/multiple keyval failed with error code %s\n",
|
|
|
|
ORTE_ERROR_NAME(rc));
|
|
|
|
test_failure("gpr_test: put 1 value/multiple keyval failed");
|
|
|
|
test_finalize();
|
|
|
|
return rc;
|
|
|
|
} else {
|
|
|
|
fprintf(test_out, "gpr_test: put 1 value/multiple keyval passed\n");
|
|
|
|
}
|
2005-04-01 01:32:12 +04:00
|
|
|
OBJ_RELEASE(val);
|
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
fprintf(stderr, "put 1 value/multiple keyvals - second container\n");
|
2005-04-01 01:32:12 +04:00
|
|
|
val = OBJ_NEW(orte_gpr_value_t);
|
|
|
|
val->addr_mode = ORTE_GPR_NO_OVERWRITE | ORTE_GPR_TOKENS_XAND;
|
|
|
|
val->segment = strdup("test-put-segment");
|
2005-03-14 23:57:21 +03:00
|
|
|
val->num_tokens = 10;
|
2005-04-01 01:32:12 +04:00
|
|
|
val->tokens = (char**)malloc(val->num_tokens * sizeof(char*));
|
|
|
|
for (i=0; i < val->num_tokens; i++) {
|
|
|
|
asprintf(&(val->tokens[i]), "dummy%d", i);
|
|
|
|
}
|
|
|
|
val->cnt = 20;
|
|
|
|
val->keyvals = (orte_gpr_keyval_t**)malloc(val->cnt * sizeof(orte_gpr_keyval_t*));
|
|
|
|
for (i=0; i<val->cnt; i++) {
|
|
|
|
val->keyvals[i] = OBJ_NEW(orte_gpr_keyval_t);
|
|
|
|
asprintf(&((val->keyvals[i])->key), "stupid-test-%d", i);
|
|
|
|
(val->keyvals[i])->type = ORTE_UINT32;
|
|
|
|
(val->keyvals[i])->value.ui32 = (uint32_t)i;
|
|
|
|
}
|
2005-04-05 22:18:27 +04:00
|
|
|
if (ORTE_SUCCESS != (rc = gpr_module->put(1, &val))) {
|
2005-03-14 23:57:21 +03:00
|
|
|
fprintf(test_out, "gpr_test: put 1 value/multiple keyval in second container failed with error code %s\n",
|
|
|
|
ORTE_ERROR_NAME(rc));
|
|
|
|
test_failure("gpr_test: put 1 value/multiple keyval in second container failed");
|
|
|
|
test_finalize();
|
|
|
|
return rc;
|
|
|
|
} else {
|
|
|
|
fprintf(test_out, "gpr_test: put 1 value/multiple keyval in second container passed\n");
|
|
|
|
}
|
|
|
|
OBJ_RELEASE(val);
|
|
|
|
|
|
|
|
fprintf(stderr, "dump\n");
|
2005-04-05 22:18:27 +04:00
|
|
|
if (ORTE_SUCCESS != (rc = gpr_module->dump_all(0))) {
|
2005-03-14 23:57:21 +03:00
|
|
|
fprintf(test_out, "gpr_test: dump failed with error code %s\n",
|
|
|
|
ORTE_ERROR_NAME(rc));
|
|
|
|
test_failure("gpr_test: dump failed");
|
|
|
|
test_finalize();
|
|
|
|
return rc;
|
|
|
|
} else {
|
|
|
|
fprintf(test_out, "gpr_test: dump passed\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
fprintf(stderr, "get\n");
|
|
|
|
names[0] = strdup("dummy0");
|
|
|
|
names[1] = NULL;
|
|
|
|
keys[0] = strdup("stupid-test-1");
|
|
|
|
keys[1] = NULL;
|
2005-04-05 22:18:27 +04:00
|
|
|
if (ORTE_SUCCESS != (rc = gpr_module->get(ORTE_GPR_KEYS_OR | ORTE_GPR_TOKENS_OR,
|
2005-03-14 23:57:21 +03:00
|
|
|
"test-put-segment",
|
|
|
|
names, keys,
|
|
|
|
&cnt, &values))) {
|
|
|
|
fprintf(test_out, "gpr_test: get failed with error code %s\n",
|
|
|
|
ORTE_ERROR_NAME(rc));
|
|
|
|
test_failure("gpr_test: get failed");
|
|
|
|
test_finalize();
|
|
|
|
return rc;
|
|
|
|
} else {
|
|
|
|
fprintf(test_out, "gpr_test: get passed\n");
|
|
|
|
}
|
2005-03-22 21:58:36 +03:00
|
|
|
free(keys[0]);
|
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
fprintf(stderr, "get results:\n");
|
|
|
|
for (j=0; j < cnt; j++) {
|
|
|
|
fprintf(stderr, "value %d: cnt %d\t segment %s num_tokens %d\n", j,
|
|
|
|
values[j]->cnt,
|
|
|
|
values[j]->segment, values[j]->num_tokens);
|
|
|
|
for (i=0; i < values[j]->num_tokens; i++) {
|
|
|
|
fprintf(stderr, "token: %d %s\n", i, values[j]->tokens[i]);
|
|
|
|
}
|
|
|
|
kvals = values[j]->keyvals;
|
|
|
|
for (i=0; i < values[j]->cnt; i++) {
|
|
|
|
fprintf(stderr, "\tkey %s type %d\n", kvals[i]->key, kvals[i]->type);
|
|
|
|
}
|
|
|
|
OBJ_RELEASE(values[j]);
|
|
|
|
}
|
|
|
|
free(values);
|
|
|
|
|
|
|
|
fprintf(stderr, "get multiple in one segment, multiple containers\n");
|
|
|
|
keys[0] = strdup("stupid-test-1");
|
|
|
|
keys[1] = strdup("stupid-test-3");
|
|
|
|
keys[2] = strdup("stupid-test-5");
|
|
|
|
keys[3] = strdup("stupid-test-8");
|
|
|
|
keys[4] = NULL;
|
2005-04-05 22:18:27 +04:00
|
|
|
if (ORTE_SUCCESS != (rc = gpr_module->get(ORTE_GPR_KEYS_OR | ORTE_GPR_TOKENS_OR,
|
2005-03-14 23:57:21 +03:00
|
|
|
"test-put-segment",
|
|
|
|
names, keys,
|
|
|
|
&cnt, &values))) {
|
|
|
|
fprintf(test_out, "gpr_test: get failed with error code %s\n",
|
|
|
|
ORTE_ERROR_NAME(rc));
|
|
|
|
test_failure("gpr_test: get failed");
|
|
|
|
test_finalize();
|
|
|
|
return rc;
|
|
|
|
} else {
|
|
|
|
fprintf(test_out, "gpr_test: get passed\n");
|
|
|
|
}
|
2005-03-22 21:58:36 +03:00
|
|
|
for (i=0; i < 4; i++) free(keys[i]);
|
|
|
|
free(names[0]);
|
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
fprintf(stderr, "get results:\n");
|
|
|
|
for (j=0; j < cnt; j++) {
|
|
|
|
fprintf(stderr, "value %d: cnt %d\t segment %s num_tokens %d\n", j,
|
|
|
|
values[j]->cnt,
|
|
|
|
values[j]->segment, values[j]->num_tokens);
|
|
|
|
for (i=0; i < values[j]->num_tokens; i++) {
|
|
|
|
fprintf(stderr, "token: %d %s\n", i, values[j]->tokens[i]);
|
|
|
|
}
|
|
|
|
kvals = values[j]->keyvals;
|
|
|
|
for (i=0; i < values[j]->cnt; i++) {
|
|
|
|
fprintf(stderr, "\tkey %s type %d\n", kvals[i]->key, kvals[i]->type);
|
|
|
|
}
|
|
|
|
OBJ_RELEASE(values[j]);
|
|
|
|
}
|
|
|
|
free(values);
|
|
|
|
|
|
|
|
fprintf(stderr, "put multiple copies of same entry in single container\n");
|
|
|
|
val = OBJ_NEW(orte_gpr_value_t);
|
2005-03-18 06:43:59 +03:00
|
|
|
val->addr_mode = ORTE_GPR_NO_OVERWRITE | ORTE_GPR_TOKENS_XAND;
|
2005-03-14 23:57:21 +03:00
|
|
|
val->cnt = 1;
|
|
|
|
val->segment = strdup("test-put-segment");
|
|
|
|
val->num_tokens = 5;
|
|
|
|
val->tokens = (char**)malloc(val->num_tokens * sizeof(char*));
|
|
|
|
for (i=0; i < 5; i++) {
|
|
|
|
asprintf(&(val->tokens[i]), "multi-dum-dum-%d", i);
|
|
|
|
}
|
|
|
|
val->keyvals = (orte_gpr_keyval_t**)malloc(sizeof(orte_gpr_keyval_t*));
|
|
|
|
val->keyvals[0] = OBJ_NEW(orte_gpr_keyval_t);
|
|
|
|
(val->keyvals[0])->key = strdup("stupid-value-next-one");
|
|
|
|
(val->keyvals[0])->type = ORTE_STRING;
|
|
|
|
(val->keyvals[0])->value.strptr = strdup("try-string-value");
|
|
|
|
for (i = 0; i < 10; i++) {
|
|
|
|
fprintf(stderr, "\tputting copy %d\n", i);
|
2005-04-05 22:18:27 +04:00
|
|
|
if (ORTE_SUCCESS != (rc = gpr_module->put(1, &val))) {
|
2005-03-14 23:57:21 +03:00
|
|
|
fprintf(test_out, "gpr_test: put multiple copies of one keyval in a container failed with error code %s\n",
|
|
|
|
ORTE_ERROR_NAME(rc));
|
|
|
|
test_failure("gpr_test: put multiple copies of one keyval in a container failed");
|
|
|
|
test_finalize();
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
OBJ_RELEASE(val);
|
|
|
|
|
2005-04-05 22:18:27 +04:00
|
|
|
gpr_module->dump_all(0);
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
fprintf(stderr, "put with no tokens puts in every container\n");
|
|
|
|
val = OBJ_NEW(orte_gpr_value_t);
|
2005-03-18 06:43:59 +03:00
|
|
|
val->addr_mode = ORTE_GPR_NO_OVERWRITE;
|
2005-03-14 23:57:21 +03:00
|
|
|
val->cnt = 1;
|
|
|
|
val->segment = strdup("test-put-segment");
|
|
|
|
val->num_tokens = 0;
|
|
|
|
val->tokens = NULL;
|
|
|
|
val->keyvals = (orte_gpr_keyval_t**)malloc(sizeof(orte_gpr_keyval_t*));
|
|
|
|
val->keyvals[0] = OBJ_NEW(orte_gpr_keyval_t);
|
|
|
|
(val->keyvals[0])->key = strdup("stupid-value-next-one");
|
|
|
|
(val->keyvals[0])->type = ORTE_STRING;
|
|
|
|
(val->keyvals[0])->value.strptr = strdup("try-string-value");
|
2005-04-05 22:18:27 +04:00
|
|
|
if (ORTE_SUCCESS != (rc = gpr_module->put(1, &val))) {
|
2005-03-14 23:57:21 +03:00
|
|
|
fprintf(test_out, "gpr_test: put with no tokens failed - returned %s\n",
|
|
|
|
ORTE_ERROR_NAME(rc));
|
|
|
|
test_failure("gpr_test: put with no tokens failed");
|
|
|
|
test_finalize();
|
|
|
|
} else {
|
|
|
|
fprintf(test_out, "gpr_test: put with no tokens passed\n");
|
|
|
|
}
|
|
|
|
OBJ_RELEASE(val);
|
|
|
|
|
2005-04-05 22:18:27 +04:00
|
|
|
gpr_module->dump_all(0);
|
2005-04-01 01:32:12 +04:00
|
|
|
|
2005-03-22 21:58:36 +03:00
|
|
|
fprintf(stderr, "now finalize and see if all memory cleared\n");
|
2005-04-05 22:18:27 +04:00
|
|
|
test_component_close(&handle);
|
2005-03-22 21:58:36 +03:00
|
|
|
orte_dps_close();
|
|
|
|
orte_sys_info_finalize();
|
|
|
|
orte_proc_info_finalize();
|
|
|
|
mca_base_close();
|
|
|
|
ompi_malloc_finalize();
|
|
|
|
ompi_output_finalize();
|
2005-04-01 01:32:12 +04:00
|
|
|
ompi_class_finalize();
|
2005-03-22 21:58:36 +03:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
fclose( test_out );
|
|
|
|
/* result = system( cmd_str );
|
|
|
|
if( result == 0 ) {
|
|
|
|
test_success();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
test_failure( "test_gpr_replica failed");
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
test_finalize();
|
2005-03-27 16:47:32 +04:00
|
|
|
unlink("test_gpr_replica_out");
|
2005-03-14 23:57:21 +03:00
|
|
|
|
|
|
|
return(0);
|
|
|
|
}
|