diff options
author | 2015-10-29 10:10:10 -0700 | |
---|---|---|
committer | 2015-10-29 10:10:10 -0700 | |
commit | f987e3af95ffbf69a7a197ae583b4ed18ddee9c8 (patch) | |
tree | 85a01977c74b929bc848f84e755196d9a0d9b568 /test/core/support | |
parent | 7f5b3285b18d2b654a6ff8f3908314c1ad7fcd18 (diff) |
Fix for long-running tsan test
Diffstat (limited to 'test/core/support')
-rw-r--r-- | test/core/support/cpu_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/support/cpu_test.c b/test/core/support/cpu_test.c index 6559c1b57e..fa83878a15 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) { gpr_uint32 cpu; int r = 12345678; int i, j; - for (i = 0; i < 1000; i++) { + for (i = 0; i < 1000 / GRPC_TEST_SLOWDOWN_FACTOR; i++) { /* run for a bit - just calculate something random. */ - for (j = 0; j < 1000000; j++) { + for (j = 0; j < 1000000 / GRPC_TEST_SLOWDOWN_FACTOR; j++) { r = (r * 17) & ((r - i) | (r * i)); } cpu = gpr_cpu_current_cpu(); |