diff options
author | Craig Tiller <ctiller@google.com> | 2015-09-24 09:54:29 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-09-24 09:54:29 -0700 |
commit | fb41adcdd4cd57ec2409321be82740f49caafef5 (patch) | |
tree | c3351ced48eb05322c1aa24d962142323557d156 | |
parent | ee56eb60c8aa0e36ac33b00fbd4e70a61412d2e4 (diff) | |
parent | 164bb07d648c9a9b156537792242d56231cc1dee (diff) |
Merge pull request #3460 from ctiller/compiler-be-broked
Fix build breakage
-rw-r--r-- | test/core/client_config/lb_policies_test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/core/client_config/lb_policies_test.c b/test/core/client_config/lb_policies_test.c index cbf4d03184..4e3b01d177 100644 --- a/test/core/client_config/lb_policies_test.c +++ b/test/core/client_config/lb_policies_test.c @@ -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, |