Skip to content
Snippets Groups Projects
Commit fb41adcd authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #3460 from ctiller/compiler-be-broked

Fix build breakage
parents ee56eb60 164bb07d
No related branches found
No related tags found
No related merge requests found
......@@ -616,6 +616,8 @@ static void verify_rebirth_round_robin(const servers_fixture *f,
expected_connection_sequence = gpr_malloc(sizeof(int) * expected_seq_length);
seen_elements = gpr_malloc(sizeof(int) * expected_seq_length);
unique_seq_last_idx = ~(size_t)0;
memset(seen_elements, 0, sizeof(uint8_t) * expected_seq_length);
for (i = 0; i < num_iters; i++) {
if (actual_connection_sequence[i] < 0 ||
......@@ -635,9 +637,11 @@ static void verify_rebirth_round_robin(const servers_fixture *f,
}
/* make sure we found a valid run */
for (j = 0; j < expected_seq_length; j++) {
GPR_ASSERT (seen_elements[j] != 0);
GPR_ASSERT(seen_elements[j] != 0);
}
GPR_ASSERT(unique_seq_last_idx != ~(size_t)0);
unique_seq_first_idx = (unique_seq_last_idx - expected_seq_length + 1);
memcpy(expected_connection_sequence,
actual_connection_sequence + unique_seq_first_idx,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment