summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2017-03-23 13:48:11 -0700
committer Mathieu Chartier <mathieuc@google.com> 2017-03-23 13:49:05 -0700
commit6824486445eb93e9b2eeb57e93511a17cbf07921 (patch)
tree53b8951210571e435ecec20e2e5e1cb2b119ff9c
parent594e8b13a6b9aca4670b819b3fb6e59fbaf6ddb4 (diff)
Reduce test 051-threads to 128 threads instead of 512
It is suspected that 512 threads can timeout on loaded machines. Bug: 36542176 Test: test/run-test --host 051 Change-Id: I8e4493d40edd74e845119b59956e4213dc750eab
-rw-r--r--test/051-thread/expected.txt2
-rw-r--r--test/051-thread/src/Main.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/051-thread/expected.txt b/test/051-thread/expected.txt
index c6cd4f8bea..3fc34929eb 100644
--- a/test/051-thread/expected.txt
+++ b/test/051-thread/expected.txt
@@ -1,6 +1,6 @@
JNI_OnLoad called
thread test starting
-testThreadCapacity thread count: 512
+testThreadCapacity thread count: 128
testThreadDaemons starting thread 'TestDaemonThread'
testThreadDaemons @ Thread running
testThreadDaemons @ Got expected setDaemon exception
diff --git a/test/051-thread/src/Main.java b/test/051-thread/src/Main.java
index 2e26b22265..82fc0d471b 100644
--- a/test/051-thread/src/Main.java
+++ b/test/051-thread/src/Main.java
@@ -35,8 +35,8 @@ public class Main {
* Simple thread capacity test.
*/
private static void testThreadCapacity() throws Exception {
- TestCapacityThread[] threads = new TestCapacityThread[512];
- for (int i = 0; i < 512; i++) {
+ TestCapacityThread[] threads = new TestCapacityThread[128];
+ for (int i = 0; i < threads.length; i++) {
threads[i] = new TestCapacityThread();
}