From 512986a71cb396165eab50e752ecaf5fa0fbadae Mon Sep 17 00:00:00 2001 From: Amy Lu Date: Tue, 30 Jun 2015 10:00:46 +0200 Subject: [PATCH] 8129759: Mark two tests from DistinctOpTest.java and SliceOpTest.java as serialization hostile Reviewed-by: psandoz --- .../org/openjdk/tests/java/util/stream/DistinctOpTest.java | 2 +- .../test/org/openjdk/tests/java/util/stream/SliceOpTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/DistinctOpTest.java b/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/DistinctOpTest.java index 96d329b73c0..fa7b912d436 100644 --- a/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/DistinctOpTest.java +++ b/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/DistinctOpTest.java @@ -171,7 +171,7 @@ public class DistinctOpTest extends OpTestCase { assertSorted(result); } - @Test + @Test(groups = { "serialization-hostile" }) public void testStable() { // Create N instances of Integer all with the same value List input = IntStream.rangeClosed(0, 1000) diff --git a/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java b/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java index 44499d021ce..7fe0006dc1b 100644 --- a/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java +++ b/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java @@ -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 @@ public class SliceOpTest extends OpTestCase { } } + @Test(groups = { "serialization-hostile" }) public void testSkipLimitOpsWithNonSplittingSpliterator() { class NonSplittingNotSubsizedOrderedSpliterator implements Spliterator { Spliterator s;