8129759: Mark two tests from DistinctOpTest.java and SliceOpTest.java as serialization hostile
authoramlu
Tue, 30 Jun 2015 10:00:46 +0200
changeset 31427 42740247adcf
parent 31426 9cd672654f97
child 31428 3656ffdfb040
8129759: Mark two tests from DistinctOpTest.java and SliceOpTest.java as serialization hostile Reviewed-by: psandoz
jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/DistinctOpTest.java
jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java
--- a/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/DistinctOpTest.java	Mon Jun 29 16:36:44 2015 -0700
+++ b/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/DistinctOpTest.java	Tue Jun 30 10:00:46 2015 +0200
@@ -171,7 +171,7 @@
         assertSorted(result);
     }
 
-    @Test
+    @Test(groups = { "serialization-hostile" })
     public void testStable() {
         // Create N instances of Integer all with the same value
         List<Integer> input = IntStream.rangeClosed(0, 1000)
--- a/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java	Mon Jun 29 16:36:44 2015 -0700
+++ b/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java	Tue Jun 30 10:00:46 2015 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -190,6 +190,7 @@
         }
     }
 
+    @Test(groups = { "serialization-hostile" })
     public void testSkipLimitOpsWithNonSplittingSpliterator() {
         class NonSplittingNotSubsizedOrderedSpliterator<T> implements Spliterator<T> {
             Spliterator<T> s;