Skip to content

Commit db45f37

Browse files
TheAssembler1github-actions[bot]jeanbez
authored
Installation fix (#293)
* fixes installation issues * Committing clang-format changes * remove comment --------- Co-authored-by: github-actions <github-actions[bot]@users.noreply.github.com> Co-authored-by: Jean Luca Bez <[email protected]>
1 parent faccacf commit db45f37

File tree

6 files changed

+18
-12
lines changed

6 files changed

+18
-12
lines changed

src/api/include/pdc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "pdc_prop.h"
3131
#include "pdc_cont.h"
3232
#include "pdc_logger.h"
33-
#include "pdc_client_connect.h"
3433

3534
#ifdef ENABLE_MPI
3635
#include "pdc_mpi.h"

src/tests/misc/idioms_ci_test.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#include <time.h>
3030
#include <inttypes.h>
3131
#include <assert.h>
32+
3233
#include "pdc.h"
34+
#include "pdc_client_connect.h"
3335
#include "test_helper.h"
3436

3537
dart_object_ref_type_t ref_type = REF_PRIMARY_ID;
@@ -334,7 +336,7 @@ main(int argc, char *argv[])
334336

335337
// prepare container
336338
if (prepare_container(&pdc, &cont_prop, &cont, &obj_prop, world_rank) < 0)
337-
PGOTO_ERROR(FAIL, "Failed to prepare container");
339+
TGOTO_ERROR(FAIL, "Failed to prepare container");
338340

339341
if (world_rank == 0)
340342
LOG_INFO("Initialization Done\n");
@@ -365,7 +367,7 @@ main(int argc, char *argv[])
365367
// we are performing 1000 insertion operations for string value and 1000 times for numerical values.
366368
ret_value = insert_index_records(world_rank, world_size);
367369
if (ret_value == FAIL)
368-
PGOTO_ERROR(FAIL, "CLIENT %d failed to insert index records\n", world_rank);
370+
TGOTO_ERROR(FAIL, "CLIENT %d failed to insert index records\n", world_rank);
369371

370372
#ifdef ENABLE_MPI
371373
MPI_Barrier(MPI_COMM_WORLD);

src/tests/obj/obj_tags.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,27 @@ main(int argc, char **argv)
100100
"Call to PDCobj_get_tag succeeded for obj1", "Call to PDCobj_get_tag failed for obj1");
101101
if (strcmp(tag_value, tag_value_ret) != 0) {
102102
LOG_ERROR("Wrong tag value at object 1, expected = %s, get %s\n", tag_value, tag_value_ret);
103-
PGOTO_DONE(TFAIL);
103+
TGOTO_DONE(TFAIL);
104104
}
105105
TASSERT(PDCobj_get_tag(obj1, "some tag 2", (void **)&tag_value_ret, &value_type, &value_size) >= 0,
106106
"Call to PDCobj_get_tag succeeded for obj1", "Call to PDCobj_get_tag failed for obj1");
107107
if (strcmp(tag_value2, tag_value_ret) != 0) {
108108
LOG_ERROR("Wrong tag value 2 at object 1, expected = %s, get %s\n", tag_value2, tag_value_ret);
109-
PGOTO_DONE(TFAIL);
109+
TGOTO_DONE(TFAIL);
110110
}
111111

112112
// get tags in obj2
113113
TASSERT(PDCobj_get_tag(obj2, "some tag", (void **)&tag_value_ret, &value_type, &value_size) >= 0,
114114
"Call to PDCobj_get_tag succeeded for obj2", "Call to PDCobj_get_tag failed for obj2");
115115
if (strcmp(tag_value, tag_value_ret) != 0) {
116116
LOG_ERROR("Wrong tag value at object 2, expected = %s, get %s\n", tag_value, tag_value_ret);
117-
PGOTO_DONE(TFAIL);
117+
TGOTO_DONE(TFAIL);
118118
}
119119
TASSERT(PDCobj_get_tag(obj2, "some tag 2", (void **)&tag_value_ret, &value_type, &value_size) >= 0,
120120
"Call to PDCobj_get_tag succeeded for obj2", "Call to PDCobj_get_tag failed for obj2");
121121
if (strcmp(tag_value2, tag_value_ret) != 0) {
122122
LOG_ERROR("Wrong tag value 2 at object 2, expected = %s, get %s\n", tag_value2, tag_value_ret);
123-
PGOTO_DONE(TFAIL);
123+
TGOTO_DONE(TFAIL);
124124
}
125125

126126
// close objects

src/tests/obj/read_obj.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <unistd.h>
88
#include <sys/time.h>
99
#include "pdc.h"
10+
#include "pdc_client_server_common.h"
1011
#include "test_helper.h"
1112

1213
void

src/tests/region/region_transfer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <unistd.h>
3232
#include <sys/time.h>
3333
#include "pdc.h"
34+
#include "pdc_private.h"
3435
#include "test_helper.h"
3536

3637
#define BUF_LEN 128

src/tests/tags/kvtag_query.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
#include <getopt.h>
2929
#include <time.h>
3030
#include "pdc.h"
31+
#include "pdc_client_connect.h"
32+
#include "dart_core.h"
33+
#include "string_utils.h"
3134
#include "test_helper.h"
3235

3336
int
@@ -99,7 +102,7 @@ main(int argc, char *argv[])
99102
if (argc < 5) {
100103
if (rank == 0)
101104
print_usage(argv[0]);
102-
PGOTO_DONE(ret_value);
105+
TGOTO_DONE(ret_value);
103106
}
104107
n_obj = atoi(argv[1]);
105108
round = atoi(argv[2]);
@@ -155,9 +158,9 @@ main(int argc, char *argv[])
155158
if (is_using_dart &&
156159
PDC_Client_insert_obj_ref_into_dart(hash_algo, kvtag.name, value, strlen(value), PDC_STRING,
157160
ref_type, (uint64_t)obj_ids[i]) < 0)
158-
PGOTO_ERROR(FAIL, "Failed to add a kvtag to o%d\n", i + my_obj_s);
161+
TGOTO_ERROR(FAIL, "Failed to add a kvtag to o%d\n", i + my_obj_s);
159162
else if (PDCobj_put_tag(obj_ids[i], kvtag.name, kvtag.value, kvtag.type, kvtag.size) < 0)
160-
PGOTO_ERROR(FAIL, "Failed to add a kvtag to o%d\n", i + my_obj_s);
163+
TGOTO_ERROR(FAIL, "Failed to add a kvtag to o%d\n", i + my_obj_s);
161164
}
162165
if (rank == 0)
163166
LOG_JUST_PRINT("Rank %d: Added %d kvtag to the %d th object\n", rank, round, i);
@@ -189,7 +192,7 @@ main(int argc, char *argv[])
189192
if (PDC_Client_search_obj_ref_through_dart(hash_algo, exact_query, ref_type, &nres, &pdc_ids) <
190193
0) {
191194
#endif
192-
PGOTO_ERROR(TFAIL, "Failed to PDC_Client_search_obj_ref_through_dart_mpi\n", kvtag.name,
195+
TGOTO_ERROR(TFAIL, "Failed to PDC_Client_search_obj_ref_through_dart_mpi\n", kvtag.name,
193196
rank);
194197
}
195198
}
@@ -199,7 +202,7 @@ main(int argc, char *argv[])
199202
#else
200203
if (PDC_Client_query_kvtag(&kvtag, &nres, &pdc_ids) < 0) {
201204
#endif
202-
PGOTO_ERROR(TFAIL, "Failed to query kvtag [%s] with rank %d\n", kvtag.name, rank);
205+
TGOTO_ERROR(TFAIL, "Failed to query kvtag [%s] with rank %d\n", kvtag.name, rank);
203206
}
204207
}
205208
}

0 commit comments

Comments
 (0)