Skip to content

Commit

Permalink
Moved classes, used LinkedList size constant
Browse files Browse the repository at this point in the history
  • Loading branch information
kpgalligan committed Oct 19, 2016
1 parent 0eab087 commit 6ee81a7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
@@ -1,14 +1,18 @@
package libcore.java.util.concurrent;
package com.google.j2objc;

import java.util.concurrent.LinkedBlockingQueue;

import junit.framework.TestCase;

public class LinkedBlockingQueueTest extends TestCase {

/**
* Tests that dealloc proceeds without stack overflow: https://github.com/google/j2objc/issues/808
*/
public void testLargeDealloc(){
LinkedBlockingQueue<String> events = new LinkedBlockingQueue<String>();

for(int i=0; i<10000; i++)
for(int i=0; i<LinkedListTest.SIZE_LARGE; i++)
{
events.add("Heyo: "+ i);
}
Expand Down
2 changes: 1 addition & 1 deletion jre_emul/test_sources.mk
Expand Up @@ -203,6 +203,7 @@ TEST_SOURCES := \
com/google/j2objc/AssertTest.java \
com/google/j2objc/ClassTest.java \
com/google/j2objc/FieldTest.java \
com/google/j2objc/LinkedBlockingQueueTest.java \
com/google/j2objc/LinkedListTest.java \
com/google/j2objc/MemoryTest.java \
com/google/j2objc/MethodTest.java \
Expand Down Expand Up @@ -360,7 +361,6 @@ TEST_SOURCES := \
libcore/java/util/ServiceLoaderTest.java \
libcore/java/util/TreeMapTest.java \
libcore/java/util/TreeSetTest.java \
libcore/java/util/concurrent/LinkedBlockingQueueTest.java \
libcore/java/util/zip/DeflaterInputStreamTest.java \
libcore/java/util/zip/DeflaterOutputStreamTest.java \
libcore/java/util/zip/DeflaterTest.java \
Expand Down

0 comments on commit 6ee81a7

Please sign in to comment.