aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/support
diff options
context:
space:
mode:
authorGravatar Robbie Shade <rjshade@google.com>2017-01-17 09:14:29 -0500
committerGravatar Robbie Shade <rjshade@google.com>2017-01-31 15:40:20 -0500
commitca7effcdff69baba8e52e4c83fe808491df60f36 (patch)
tree7e04f13f655f44c5930233381b615e1d54e5386e /test/core/support
parentc88834ba996084db5f530706a09892bdd900e7dc (diff)
Replace timeout/scaling macros with functions.
Diffstat (limited to 'test/core/support')
-rw-r--r--test/core/support/cpu_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/support/cpu_test.c b/test/core/support/cpu_test.c
index a5c52442ad..ca0fe0ccb5 100644
--- a/test/core/support/cpu_test.c
+++ b/test/core/support/cpu_test.c
@@ -81,9 +81,9 @@ static void worker_thread(void *arg) {
uint32_t cpu;
unsigned r = 12345678;
unsigned i, j;
- for (i = 0; i < 1000 / GRPC_TEST_SLOWDOWN_FACTOR; i++) {
+ for (i = 0; i < 1000 / grpc_test_slowdown_factor(); i++) {
/* run for a bit - just calculate something random. */
- for (j = 0; j < 1000000 / GRPC_TEST_SLOWDOWN_FACTOR; j++) {
+ for (j = 0; j < 1000000 / grpc_test_slowdown_factor(); j++) {
r = (r * 17) & ((r - i) | (r * i));
}
cpu = gpr_cpu_current_cpu();