Commit db088ede authored by Rob Latham's avatar Rob Latham

woof.. fix all the stuff when actually compiling new tests

parent ae10f83d
......@@ -8,8 +8,8 @@ check_PROGRAMS += \
tests/ssg-observe-group \
tests/ssg-join-leave-group \
tests/ssg-test-fail \
tests/ssg-test-separate-group-create.c \
tests/ssg-test-separate-group-attach.c
tests/ssg-test-separate-group-create \
tests/ssg-test-separate-group-attach
EXTRA_DIST += \
tests/test-util.sh
......
......@@ -4,7 +4,6 @@
int main(int argc, char **argv)
{
char ssg_group_buf[256];
int ret;
ssg_group_id_t gid;
margo_instance_id mid;
......@@ -15,8 +14,7 @@ int main(int argc, char **argv)
ssg_init();
int count=1;
int actual=0;
ret = ssg_group_id_load(argv[2], &count, &actual, &gid);
ret = ssg_group_id_load(argv[2], &count, &gid);
assert (ret == SSG_SUCCESS);
fprintf(stderr, " attaching...\n");
......
......@@ -31,7 +31,10 @@ int main(int argc, char **argv)
ret = ssg_init();
ASSERT(ret == 0, "ssg_init failed (ret = %d)\n", ret);
gid = ssg_group_create_mpi(mid, GROUP_NAME, MPI_COMM_WORLD, NULL, NULL, NULL);
ASSERT(gid != SSG_GROUP_ID_NULL, "ssg_group_create_mpi() failed\n", gid);
if (gid == SSG_GROUP_ID_INVALID) {
fprintf(stderr, "ssg_group_create_mpi failed\n");
exit(-1);
}
margo_push_finalize_callback(mid, &finalized_ssg_group_cb, (void*)&gid);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment