Skip to content

Commit

Permalink
Exclude tests that fail in Java8 legacy dev mode
Browse files Browse the repository at this point in the history
Note that these would pass in legacy dev mode in Java 11/17, but we
don't run legacy dev mode tests for those JVMs for a variety of reasons.
  • Loading branch information
niloc132 committed Nov 8, 2023
1 parent 2f2b3c9 commit f0eb1df
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
package com.google.gwt.emultest.java8.util.stream;

import com.google.gwt.emultest.java.util.EmulTestBase;
import com.google.gwt.junit.DoNotRunWith;
import com.google.gwt.junit.Platform;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -113,6 +115,10 @@ public void testConcat() {
assertEquals(Arrays.asList("first", "second"), closed);
}

// Java8 has the same bug that GWT previously had here, so we're excluding Java8 from running
// this test. Presently, legacy dev mode is the only way to actually run this test using the
// JVM's own implementation, so marking this DoNotRunWith(Devel) is sufficient to avoid this.
@DoNotRunWith(Platform.Devel)
public void testIterate() {
assertEquals(
new double[] {10d, 11d, 12d, 13d, 14d},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
package com.google.gwt.emultest.java8.util.stream;

import com.google.gwt.emultest.java.util.EmulTestBase;
import com.google.gwt.junit.DoNotRunWith;
import com.google.gwt.junit.Platform;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -112,6 +114,10 @@ public void testConcat() {
assertEquals(Arrays.asList("first", "second"), closed);
}

// Java8 has the same bug that GWT previously had here, so we're excluding Java8 from running
// this test. Presently, legacy dev mode is the only way to actually run this test using the
// JVM's own implementation, so marking this DoNotRunWith(Devel) is sufficient to avoid this.
@DoNotRunWith(Platform.Devel)
public void testIterate() {
assertEquals(
new int[] {10, 11, 12, 13, 14},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
package com.google.gwt.emultest.java8.util.stream;

import com.google.gwt.emultest.java.util.EmulTestBase;
import com.google.gwt.junit.DoNotRunWith;
import com.google.gwt.junit.Platform;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -111,6 +113,10 @@ public void testConcat() {
assertEquals(Arrays.asList("first", "second"), closed);
}

// Java8 has the same bug that GWT previously had here, so we're excluding Java8 from running
// this test. Presently, legacy dev mode is the only way to actually run this test using the
// JVM's own implementation, so marking this DoNotRunWith(Devel) is sufficient to avoid this.
@DoNotRunWith(Platform.Devel)
public void testIterate() {
assertEquals(
new long[] {10L, 11L, 12L, 13L, 14L},
Expand Down

0 comments on commit f0eb1df

Please sign in to comment.